Skip to content

Commit

Permalink
Fix broken fork choice tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Sep 8, 2020
1 parent 531e16c commit 0aff41b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions consensus/proto_array/src/proto_array_fork_choice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ mod test_compute_deltas {
let finalized_desc = Hash256::from_low_u64_be(2);
let not_finalized_desc = Hash256::from_low_u64_be(3);
let unknown = Hash256::from_low_u64_be(4);
let shuffling_id = ShufflingId::from_components(Epoch::new(0), Hash256::zero());

let mut fc = ProtoArrayForkChoice::new(
genesis_slot,
Expand All @@ -368,6 +369,8 @@ mod test_compute_deltas {
parent_root: Some(finalized_root),
state_root,
target_root: finalized_root,
current_epoch_shuffling_id: shuffling_id.clone(),
next_epoch_shuffling_id: shuffling_id.clone(),
justified_epoch: genesis_epoch,
finalized_epoch: genesis_epoch,
})
Expand All @@ -381,6 +384,8 @@ mod test_compute_deltas {
parent_root: None,
state_root,
target_root: finalized_root,
current_epoch_shuffling_id: shuffling_id.clone(),
next_epoch_shuffling_id: shuffling_id.clone(),
justified_epoch: genesis_epoch,
finalized_epoch: genesis_epoch,
})
Expand Down

0 comments on commit 0aff41b

Please sign in to comment.