Tentative bugfix: Reset testnet was producing a genesis state without validators

This commit is contained in:
Zahary Karadjov 2019-07-01 16:20:55 +03:00
parent c98426586e
commit bf037eab5e
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609

View File

@ -740,7 +740,9 @@ when isMainModule:
let initialState = get_genesis_beacon_state(
deposits,
uint64(times.toUnix(times.getTime()) + config.genesisOffset),
Eth1Data(), {})
Eth1Data(), {skipValidation})
doAssert initialState.validators.len > 0
Json.saveFile(config.outputGenesis.string, initialState, pretty = true)
echo "Wrote ", config.outputGenesis.string