mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-22 19:28:20 +00:00
add sanity check for SIGFPE crashes (#524)
This commit is contained in:
parent
0073555752
commit
a1f5f3512b
@ -190,6 +190,9 @@ func get_beacon_proposer_index*(state: BeaconState, stateCache: var StateCache):
|
||||
first_committee = get_crosslink_committee(state, epoch, shard, stateCache)
|
||||
seed = get_seed(state, epoch)
|
||||
|
||||
# This mainly fails when there are no active validators for some reason
|
||||
doAssert first_committee.len > 0
|
||||
|
||||
var
|
||||
i = 0
|
||||
buffer: array[(32+8), byte]
|
||||
|
Loading…
x
Reference in New Issue
Block a user