Merge pull request #786 from ethereum/JustinDrake-patch-14

`GENESIS_EPOCH - 1` for `previous_shuffling_epoch` and `previous_justified_epoch`
This commit is contained in:
Danny Ryan 2019-03-19 14:23:04 -06:00 committed by GitHub
commit 333b9a3ce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1515,7 +1515,7 @@ def get_genesis_beacon_state(genesis_validator_deposits: List[Deposit],
latest_randao_mixes=Vector([ZERO_HASH for _ in range(LATEST_RANDAO_MIXES_LENGTH)]), latest_randao_mixes=Vector([ZERO_HASH for _ in range(LATEST_RANDAO_MIXES_LENGTH)]),
previous_shuffling_start_shard=GENESIS_START_SHARD, previous_shuffling_start_shard=GENESIS_START_SHARD,
current_shuffling_start_shard=GENESIS_START_SHARD, current_shuffling_start_shard=GENESIS_START_SHARD,
previous_shuffling_epoch=GENESIS_EPOCH, previous_shuffling_epoch=GENESIS_EPOCH - 1,
current_shuffling_epoch=GENESIS_EPOCH, current_shuffling_epoch=GENESIS_EPOCH,
previous_shuffling_seed=ZERO_HASH, previous_shuffling_seed=ZERO_HASH,
current_shuffling_seed=ZERO_HASH, current_shuffling_seed=ZERO_HASH,
@ -1523,7 +1523,7 @@ def get_genesis_beacon_state(genesis_validator_deposits: List[Deposit],
# Finality # Finality
previous_epoch_attestations=[], previous_epoch_attestations=[],
current_epoch_attestations=[], current_epoch_attestations=[],
previous_justified_epoch=GENESIS_EPOCH, previous_justified_epoch=GENESIS_EPOCH - 1,
current_justified_epoch=GENESIS_EPOCH, current_justified_epoch=GENESIS_EPOCH,
previous_justified_root=ZERO_HASH, previous_justified_root=ZERO_HASH,
current_justified_root=ZERO_HASH, current_justified_root=ZERO_HASH,