Delay validators and add more log in crosslink asserts (#103)

This commit is contained in:
Mamy Ratsimbazafy 2019-02-11 16:29:21 +01:00 committed by GitHub
parent 4747477160
commit f7feb9a6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -91,9 +91,9 @@ func get_crosslink_committees_at_slot*(state: BeaconState, slot: uint64,
previous_epoch = if current_epoch > GENESIS_EPOCH: (current_epoch - 1) else: current_epoch
next_epoch = current_epoch + 1
assert previous_epoch <= epoch
assert epoch <= next_epoch
# TODO - Hack: used to be "epoch < next_epoch"
assert previous_epoch <= epoch, "Previous epoch: " & $previous_epoch & ", epoch: " & $epoch & ", Next epoch: " & $next_epoch
assert epoch <= next_epoch, "Previous epoch: " & $previous_epoch & ", epoch: " & $epoch & ", Next epoch: " & $next_epoch
# TODO - Hack: used to be "epoch < next_epoch" (exlusive interval)
# until https://github.com/status-im/nim-beacon-chain/issues/97
template get_epoch_specific_params(): auto =

View File

@ -32,7 +32,7 @@ if [[ -z "$SKIP_BUILDS" ]]; then
fi
if [ ! -f $STARTUP_FILE ]; then
$VALIDATOR_KEYGEN_BIN --validators=$NUMBER_OF_VALIDATORS --outputDir="$SIMULATION_DIR"
$VALIDATOR_KEYGEN_BIN --validators=$NUMBER_OF_VALIDATORS --outputDir="$SIMULATION_DIR" --startupDelay=2
fi
if [ ! -f $SNAPSHOT_FILE ]; then