Skip to content

Commit e4f21e2

Browse files
committed
Exit on failed validate state trie
1 parent 1687c10 commit e4f21e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/networking/p2p/sync.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,7 @@ pub async fn validate_state_root(store: Store, state_root: H256) -> bool {
12311231
info!("Succesfully validated tree, {state_root} found");
12321232
} else {
12331233
error!("We have failed the validation of the state tree");
1234+
std::process::exit(1);
12341235
}
12351236
validated.is_ok()
12361237
}

0 commit comments

Comments
 (0)