Skip to content

Commit

Permalink
Fix mock consensus.get_block_roots_for_period()
Browse files Browse the repository at this point in the history
  • Loading branch information
themicp committed Jan 29, 2024
1 parent 0c0b430 commit 08b7154
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions prover/src/prover/proof_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,15 @@ mod tests {
Ok(tree)
});

consensus
.expect_get_block_roots_for_period()
.returning(|_| {
let file = File::open("./src/prover/testdata/block_roots.json").unwrap();
let tree: Vector<_, SLOTS_PER_HISTORICAL_ROOT> =
serde_json::from_reader(file).unwrap();
Ok(tree)
});

let mut state_prover = MockStateProver::new();

state_prover
Expand Down

0 comments on commit 08b7154

Please sign in to comment.