mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
Fix stale beacon_state_root in test helpers (#9289)
Test helpers `add_attested_block_at_slot` and `add_attested_blocks_at_slot` accepted `state_root` argument which was computed before applying the block. Co-Authored-By: hopinheimer <knmanas6@gmail.com>
This commit is contained in:
@@ -185,7 +185,6 @@ async fn aggregated_gossip_verification() {
|
||||
harness
|
||||
.add_attested_blocks_at_slots(
|
||||
state,
|
||||
Hash256::zero(),
|
||||
&[Slot::new(1), Slot::new(2)],
|
||||
(0..VALIDATOR_COUNT).collect::<Vec<_>>().as_slice(),
|
||||
)
|
||||
@@ -495,7 +494,7 @@ async fn aggregated_gossip_verification() {
|
||||
);
|
||||
|
||||
harness
|
||||
.add_attested_block_at_slot(target_slot, state, Hash256::zero(), &[])
|
||||
.add_attested_block_at_slot(target_slot, state, &[])
|
||||
.await
|
||||
.expect("should add block");
|
||||
|
||||
@@ -519,7 +518,6 @@ async fn unaggregated_gossip_verification() {
|
||||
harness
|
||||
.add_attested_blocks_at_slots(
|
||||
state,
|
||||
Hash256::zero(),
|
||||
&[Slot::new(1), Slot::new(2)],
|
||||
(0..VALIDATOR_COUNT).collect::<Vec<_>>().as_slice(),
|
||||
)
|
||||
@@ -801,7 +799,7 @@ async fn unaggregated_gossip_verification() {
|
||||
);
|
||||
|
||||
harness
|
||||
.add_attested_block_at_slot(target_slot, state, Hash256::zero(), &[])
|
||||
.add_attested_block_at_slot(target_slot, state, &[])
|
||||
.await
|
||||
.expect("should add block");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user