@@ -20,7 +20,7 @@ use std::time::Duration;
2020
2121use burnchains:: {
2222 db:: { BurnchainBlockData , BurnchainDB } ,
23- Txid , Burnchain , BurnchainBlockHeader , BurnchainHeaderHash , Error as BurnchainError ,
23+ Burnchain , BurnchainBlockHeader , BurnchainHeaderHash , Error as BurnchainError , Txid ,
2424} ;
2525use chainstate:: burn:: {
2626 db:: sortdb:: { PoxId , SortitionDB , SortitionId } ,
@@ -107,7 +107,7 @@ pub trait BlockEventDispatcher {
107107 metadata : StacksHeaderInfo ,
108108 receipts : Vec < StacksTransactionReceipt > ,
109109 parent : & StacksBlockId ,
110- winner_txid : Txid
110+ winner_txid : Txid ,
111111 ) ;
112112
113113 fn dispatch_boot_receipts ( & mut self , receipts : Vec < StacksTransactionReceipt > ) ;
@@ -581,21 +581,24 @@ impl<'a, T: BlockEventDispatcher, N: CoordinatorNotices, U: RewardSetProvider>
581581 "FAIL: could not find data for the canonical sortition {}" ,
582582 canonical_sortition_tip
583583 ) ) ;
584- let new_canonical_stacks_block = new_canonical_block_snapshot
585- . get_canonical_stacks_block_id ( ) ;
584+ let new_canonical_stacks_block =
585+ new_canonical_block_snapshot . get_canonical_stacks_block_id ( ) ;
586586 self . canonical_chain_tip = Some ( new_canonical_stacks_block) ;
587587 debug ! ( "Bump blocks processed" ) ;
588588 self . notifier . notify_stacks_block_processed ( ) ;
589589 increment_stx_blocks_processed_counter ( ) ;
590590 let block_hash = block_receipt. header . anchored_header . block_hash ( ) ;
591591
592592 if let Some ( dispatcher) = self . dispatcher {
593- let metadata = & block_receipt. header ;
593+ let metadata = & block_receipt. header ;
594594 let winner_txid = SortitionDB :: get_block_snapshot_for_winning_stacks_block (
595- & self . sortition_db . index_conn ( ) , canonical_sortition_tip, & block_hash)
596- . expect ( "FAIL: could not find block snapshot for winning block hash" )
597- . expect ( "FAIL: could not find block snapshot for winning block hash" )
598- . winning_block_txid ;
595+ & self . sortition_db . index_conn ( ) ,
596+ canonical_sortition_tip,
597+ & block_hash,
598+ )
599+ . expect ( "FAIL: could not find block snapshot for winning block hash" )
600+ . expect ( "FAIL: could not find block snapshot for winning block hash" )
601+ . winning_block_txid ;
599602
600603 let block: StacksBlock = {
601604 let block_path = StacksChainState :: get_block_path (
@@ -617,7 +620,7 @@ impl<'a, T: BlockEventDispatcher, N: CoordinatorNotices, U: RewardSetProvider>
617620 block_receipt. header ,
618621 block_receipt. tx_receipts ,
619622 & parent,
620- winner_txid
623+ winner_txid,
621624 ) ;
622625 }
623626
0 commit comments