Skip to content

Commit

Permalink
chore: expose execution error of debug_cmd/merkle.rs (#13515)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendanzhentan authored Dec 23, 2024
1 parent 50dfd30 commit 0d8efd8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/reth/src/commands/debug_cmd/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,11 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {

let clean_input = ExecInput { target: Some(sealed_block.number), checkpoint: None };
loop {
let clean_result = merkle_stage.execute(&provider_rw, clean_input);
assert!(clean_result.is_ok(), "Clean state root calculation failed");
if clean_result.unwrap().done {
break
let clean_result = merkle_stage
.execute(&provider_rw, clean_input)
.map_err(|e| eyre::eyre!("Clean state root calculation failed: {}", e))?;
if clean_result.done {
break;
}
}

Expand Down

0 comments on commit 0d8efd8

Please sign in to comment.