Hacky (?) fix #97 assert fails

This commit is contained in:
mratsim 2019-02-07 20:31:23 +01:00 committed by zah
parent 072c1607fd
commit 1e574cf75a
1 changed files with 3 additions and 1 deletions

View File

@ -92,7 +92,9 @@ func get_crosslink_committees_at_slot*(state: BeaconState, slot: uint64,
next_epoch = current_epoch + 1
assert previous_epoch <= epoch
assert epoch < next_epoch
assert epoch <= next_epoch
# TODO - Hack: used to be "epoch < next_epoch"
# until https://github.com/status-im/nim-beacon-chain/issues/97
template get_epoch_specific_params(): auto =
if epoch < current_epoch: