mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-06-20 03:09:14 +08:00
Format fix post merge
This commit is contained in:
@@ -227,7 +227,10 @@ impl StacksClient {
|
||||
}
|
||||
|
||||
/// Submit the block proposal to the stacks node. The block will be validated and returned via the HTTP endpoint for Block events.
|
||||
pub fn submit_block_for_validation_with_retry(&self, block: NakamotoBlock) -> Result<(), ClientError> {
|
||||
pub fn submit_block_for_validation_with_retry(
|
||||
&self,
|
||||
block: NakamotoBlock,
|
||||
) -> Result<(), ClientError> {
|
||||
let block_proposal = NakamotoBlockProposal {
|
||||
block,
|
||||
chain_id: self.chain_id,
|
||||
@@ -461,7 +464,10 @@ impl StacksClient {
|
||||
}
|
||||
|
||||
/// Helper function to submit a transaction to the Stacks mempool
|
||||
pub fn submit_transaction_with_retry(&self, tx: &StacksTransaction) -> Result<Txid, ClientError> {
|
||||
pub fn submit_transaction_with_retry(
|
||||
&self,
|
||||
tx: &StacksTransaction,
|
||||
) -> Result<Txid, ClientError> {
|
||||
let txid = tx.txid();
|
||||
let tx = tx.serialize_to_vec();
|
||||
let send_request = || {
|
||||
|
||||
Reference in New Issue
Block a user