mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Consensus updates for v0.12 (#1228)
* Update state processing for v0.12 * Fix EF test runners for v0.12 * Fix some tests * Fix broken attestation verification test * More test fixes * Fix typo found in review
This commit is contained in:
@@ -7,8 +7,8 @@ use types::{BeaconBlock, BeaconState, Epoch, EthSpec, SignedBeaconBlock};
|
||||
|
||||
// Default validator index to exit.
|
||||
pub const VALIDATOR_INDEX: u64 = 0;
|
||||
// Epoch that the state will be transitioned to by default, equal to PERSISTENT_COMMITTEE_PERIOD.
|
||||
pub const STATE_EPOCH: Epoch = Epoch::new(2048);
|
||||
// Epoch that the state will be transitioned to by default, equal to SHARD_COMMITTEE_PERIOD.
|
||||
pub const STATE_EPOCH: Epoch = Epoch::new(256);
|
||||
|
||||
struct ExitTest {
|
||||
validator_index: u64,
|
||||
@@ -62,7 +62,7 @@ impl ExitTest {
|
||||
fn run(self) -> BeaconState<E> {
|
||||
let spec = &E::default_spec();
|
||||
let expected = self.expected.clone();
|
||||
assert_eq!(STATE_EPOCH, spec.persistent_committee_period);
|
||||
assert_eq!(STATE_EPOCH, spec.shard_committee_period);
|
||||
|
||||
let (block, mut state) = self.block_and_pre_state();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user