bump nim-eth2-scenarios to get merge SSZ test vectors (#2541)

This commit is contained in:
tersec 2021-05-05 15:35:36 +00:00 committed by GitHub
parent 2018a55c51
commit dd43a2c3b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -175,14 +175,14 @@ func get_committee_count_per_slot*(state: BeaconState,
# https://github.com/ethereum/eth2.0-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#get_previous_epoch
func get_previous_epoch*(current_epoch: Epoch): Epoch =
# Return the previous epoch (unless the current epoch is ``GENESIS_EPOCH``).
## Return the previous epoch (unless the current epoch is ``GENESIS_EPOCH``).
if current_epoch == GENESIS_EPOCH:
current_epoch
else:
current_epoch - 1
func get_previous_epoch*(state: BeaconState): Epoch =
# Return the previous epoch (unless the current epoch is ``GENESIS_EPOCH``).
## Return the previous epoch (unless the current epoch is ``GENESIS_EPOCH``).
get_previous_epoch(get_current_epoch(state))
# https://github.com/ethereum/eth2.0-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#compute_committee

@ -1 +1 @@
Subproject commit f0827c8b2fcac188d0afe9fa78614bb85831f636
Subproject commit 03a4442b65b3e77f258e58a630e577b729d33a24