Skip to content

Commit 4268ae5

Browse files
committed
Add more detailed instruments to import_block
1 parent 386b425 commit 4268ae5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

beacon_node/beacon_chain/src/beacon_chain.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4271,6 +4271,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
42714271
/// Iterate through the attestations in the block and register them as "observed".
42724272
///
42734273
/// This will stop us from propagating them on the gossip network.
4274+
#[instrument(skip_all)]
42744275
fn import_block_observe_attestations(
42754276
&self,
42764277
block: BeaconBlockRef<T::EthSpec>,
@@ -4431,6 +4432,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
44314432

44324433
// For the current and next epoch of this state, ensure we have the shuffling from this
44334434
// block in our cache.
4435+
#[instrument(skip_all)]
44344436
fn import_block_update_shuffling_cache(
44354437
&self,
44364438
block_root: Hash256,

consensus/fork_choice/src/fork_choice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ where
472472
/// Is equivalent to:
473473
///
474474
/// https://github.com/ethereum/eth2.0-specs/blob/v0.12.1/specs/phase0/fork-choice.md#get_head
475+
#[instrument(skip_all)]
475476
pub fn get_head(
476477
&mut self,
477478
system_time_current_slot: Slot,

0 commit comments

Comments
 (0)