diff --git a/beacon_chain/spec/validator.nim b/beacon_chain/spec/validator.nim index b687953bf..7f78c394f 100644 --- a/beacon_chain/spec/validator.nim +++ b/beacon_chain/spec/validator.nim @@ -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 diff --git a/vendor/nim-eth2-scenarios b/vendor/nim-eth2-scenarios index f0827c8b2..03a4442b6 160000 --- a/vendor/nim-eth2-scenarios +++ b/vendor/nim-eth2-scenarios @@ -1 +1 @@ -Subproject commit f0827c8b2fcac188d0afe9fa78614bb85831f636 +Subproject commit 03a4442b65b3e77f258e58a630e577b729d33a24