mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
accept zero state root
This commit is contained in:
@@ -435,7 +435,14 @@ where
|
|||||||
|
|
||||||
// first line can be state root
|
// first line can be state root
|
||||||
let dump_state_root = parse_state_root(&mut reader)?;
|
let dump_state_root = parse_state_root(&mut reader)?;
|
||||||
if expected_state_root != dump_state_root {
|
if dump_state_root == B256::ZERO {
|
||||||
|
info!(
|
||||||
|
target: "reth::cli",
|
||||||
|
?expected_state_root,
|
||||||
|
header=?header.num_hash(),
|
||||||
|
"Dump state root is zero, using expected state root"
|
||||||
|
);
|
||||||
|
} else if expected_state_root != dump_state_root {
|
||||||
error!(target: "reth::cli",
|
error!(target: "reth::cli",
|
||||||
?dump_state_root,
|
?dump_state_root,
|
||||||
?expected_state_root,
|
?expected_state_root,
|
||||||
|
|||||||
Reference in New Issue
Block a user