Skip to content

Commit

Permalink
Stage 5 verification fail logging improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
SurfingNerd committed Dec 11, 2024
1 parent 589aca2 commit 6816906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ethcore/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ impl Importer {
{
let best_block_number = client.chain.read().best_block_number();
if best_block_number >= header.number() {
warn!(target: "client", "Stage 5 verification failed for #{} ({})\nBlock is ancient (current best block: #{}).", header.number(), header.hash(), best_block_number);
warn!(target: "client", "Stage 5 verification failed for #{} ({})\nBlock is ancient (current best block: #{}). Error: {:?}", header.number(), header.hash(), best_block_number, e);
bail!("Block is ancient");
} else {
warn!(target: "client", "Stage 5 block verification failed for #{} ({})\nError: {:?}", header.number(), header.hash(), e);
Expand Down

0 comments on commit 6816906

Please sign in to comment.