Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Replace genesis state trie check with TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
LindaGuiga committed Sep 6, 2023
1 parent 6bd17e2 commit d4b71c5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions evm/src/fixed_recursive_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -756,15 +756,7 @@ where
let gen_block_constr = builder.mul(has_not_parent_block, rhs.block_metadata.block_number);
builder.connect(gen_block_constr, zero);

// Check that the genesis block has empty state trie.
let initial_trie = HashedPartialTrie::from(Node::Empty).hash();

for (i, limb) in h256_limbs::<F>(initial_trie).into_iter().enumerate() {
let limb_target = builder.constant(limb);
let mut temp = builder.sub(rhs.trie_roots_before.state_root[i], limb_target);
temp = builder.mul(has_not_parent_block, temp);
builder.connect(temp, zero);
}
// TODO: Check that the genesis block has a predetermined state trie root.
}

fn connect_final_block_values_to_intermediary(
Expand Down

0 comments on commit d4b71c5

Please sign in to comment.