Skip to content

Commit

Permalink
Update connect_block snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseSK999 committed Dec 27, 2024
1 parent 7496e28 commit cd7b6fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ch03-03-connecting-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ fn connect_block(
block.block_hash(),
block.txdata.len()
);
#
# #[cfg(feature = "metrics")]
# metrics::get_metrics().block_height.set(height.into());

if !self.is_in_idb() || height % 10_000 == 0 {
self.flush()?;
Expand Down

0 comments on commit cd7b6fe

Please sign in to comment.