@@ -47,6 +47,7 @@ impl<N: Network, C: ConsensusStorage<N>> Ledger<N, C> {
4747 /// * This will reject any blocks with a height <= the current height and any blocks with a height >= the current height + GC.
4848 /// For the former, a valid block already exists and,
4949 /// for the latter, the comittte is still unknown.
50+ #[ cfg_attr( feature = "tracing" , tracing:: instrument( skip( self , block, pending_blocks) ) ) ]
5051 pub fn check_block_subdag ( & self , block : Block < N > , pending_blocks : & [ PendingBlock < N > ] ) -> Result < PendingBlock < N > > {
5152 self . check_block_subdag_inner ( & block, pending_blocks) ?;
5253 Ok ( PendingBlock ( block) )
@@ -91,6 +92,7 @@ impl<N: Network, C: ConsensusStorage<N>> Ledger<N, C> {
9192 }
9293
9394 /// Checks the given block is a valid next block with regard to the current state/height of the Ledger.
95+ #[ cfg_attr( feature = "tracing" , tracing:: instrument( skip( self , block, rng) ) ) ]
9496 pub fn check_next_block < R : CryptoRng + Rng > ( & self , block : & Block < N > , rng : & mut R ) -> Result < ( ) > {
9597 self . check_block_subdag_inner ( block, & [ ] ) ?;
9698 self . check_block_content_inner ( block, rng) ?;
@@ -226,6 +228,7 @@ impl<N: Network, C: ConsensusStorage<N>> Ledger<N, C> {
226228 ///
227229 /// This does not verify that the batches are signed correctly or that the edges are valid
228230 /// (only point to the previous round), as those checks already happened when the node received the batch.
231+ #[ cfg_attr( feature = "tracing" , tracing:: instrument( skip( self , block, previous_blocks) ) ) ]
229232 fn check_block_subdag_leaves ( & self , block : & Block < N > , previous_blocks : & [ PendingBlock < N > ] ) -> Result < ( ) > {
230233 // Check if the block has a subdag.
231234 let Authority :: Quorum ( subdag) = block. authority ( ) else {
@@ -276,6 +279,7 @@ impl<N: Network, C: ConsensusStorage<N>> Ledger<N, C> {
276279 /// Check that the certificates in the block subdag have met quorum requirements.
277280 ///
278281 /// Called by [`Self::check_block_subdag`]
282+ #[ cfg_attr( feature = "tracing" , tracing:: instrument( skip( self , block) ) ) ]
279283 fn check_block_subdag_quorum ( & self , block : & Block < N > ) -> Result < ( ) > {
280284 // Check if the block has a subdag.
281285 let subdag = match block. authority ( ) {
0 commit comments