Skip to content

Commit

Permalink
Observe block_random
Browse files Browse the repository at this point in the history
  • Loading branch information
wborgeaud committed Sep 1, 2023
1 parent 0027f06 commit 3c2adf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions evm/src/get_challenges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ fn observe_block_metadata<
challenger.observe_element(F::from_canonical_u32(
block_metadata.block_difficulty.as_u32(),
));
challenger.observe_elements(&u256_limbs::<F>(block_metadata.block_random));
challenger.observe_element(F::from_canonical_u32(
block_metadata.block_gaslimit.as_u32(),
));
Expand Down Expand Up @@ -95,6 +96,7 @@ fn observe_block_metadata_target<
challenger.observe_element(block_metadata.block_timestamp);
challenger.observe_element(block_metadata.block_number);
challenger.observe_element(block_metadata.block_difficulty);
challenger.observe_elements(&block_metadata.block_random);
challenger.observe_element(block_metadata.block_gaslimit);
challenger.observe_element(block_metadata.block_chain_id);
challenger.observe_elements(&block_metadata.block_base_fee);
Expand Down

0 comments on commit 3c2adf5

Please sign in to comment.