mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-02 04:14:33 +00:00
Gloas alpha spec 8 (#9315)
https://github.com/ethereum/consensus-specs/releases/tag/v1.7.0-alpha.8 Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu> Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -112,7 +112,7 @@ impl TestContext {
|
||||
let slot_in_epoch = slot.as_usize() % E::slots_per_epoch() as usize;
|
||||
let epoch = slot.epoch(E::slots_per_epoch());
|
||||
let current_epoch = state.slot().epoch(E::slots_per_epoch());
|
||||
let index = if epoch == current_epoch.saturating_add(1u64) {
|
||||
let index = if epoch == current_epoch.saturating_add(self.spec.min_seed_lookahead) {
|
||||
E::slots_per_epoch() as usize + slot_in_epoch
|
||||
} else {
|
||||
slot_in_epoch
|
||||
@@ -131,7 +131,7 @@ fn make_signed_preferences(
|
||||
proposal_slot,
|
||||
validator_index,
|
||||
fee_recipient: Address::ZERO,
|
||||
gas_limit: 30_000_000,
|
||||
target_gas_limit: 30_000_000,
|
||||
},
|
||||
signature: Signature::empty(),
|
||||
})
|
||||
@@ -271,7 +271,7 @@ fn same_validator_different_dependent_root_not_deduplicated() {
|
||||
validator_index: 42,
|
||||
dependent_root: Hash256::repeat_byte(0xaa),
|
||||
fee_recipient: Address::ZERO,
|
||||
gas_limit: 30_000_000,
|
||||
target_gas_limit: 30_000_000,
|
||||
},
|
||||
signature: Signature::empty(),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user