Skip to content

Commit

Permalink
loosen check
Browse files Browse the repository at this point in the history
  • Loading branch information
realbigsean committed Jun 9, 2023
1 parent b465530 commit 069d13d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions beacon_node/beacon_chain/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,13 +440,6 @@ where
.update_tree_hash_cache()
.map_err(|e| format!("Error computing checkpoint state root: {:?}", e))?;

if weak_subj_state_root != computed_state_root {
return Err(format!(
"Snapshot state root does not match block, expected: {:?}, got: {:?}",
weak_subj_state_root, computed_state_root
));
}

// Check that the checkpoint state is for the same network as the genesis state.
// This check doesn't do much for security but should prevent mistakes.
if weak_subj_state.genesis_validators_root() != genesis_state.genesis_validators_root() {
Expand Down

0 comments on commit 069d13d

Please sign in to comment.