Skip to content

Commit 1e7231e

Browse files
committed
Remove debugging code block
1 parent 1a7a6bf commit 1e7231e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

crates/networking/p2p/sync.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -316,18 +316,6 @@ impl Syncer {
316316
let block_number = block.header.number;
317317
info!("Executing block: {block_number}");
318318

319-
// TODO: The following code block is for debugging purposes only, please remove
320-
{
321-
// Check if we have the parent
322-
let parent_block = store
323-
.get_block_by_hash(block.header.parent_hash)
324-
.await
325-
.unwrap()
326-
.unwrap();
327-
if !store.contains_state_node(parent_block.header.state_root)? {
328-
panic!("Missing state root for parent block")
329-
}
330-
}
331319
self.blockchain.add_block(&block).await?;
332320
store.set_canonical_block(block_number, *hash).await?;
333321
store.update_latest_block_number(block_number).await?;

0 commit comments

Comments
 (0)