mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-26 14:32:24 +00:00
Fix a VC crash observed in the local_testnet simulation (#3872)
It's not quite clear why this condition was triggered in the local simulation, but it seems a viable scenario after the Keymanager API is integrated in the validator client. The user can temporarily remove all validator keys from a running client before adding another set of keys.
This commit is contained in:
parent
a6deacd878
commit
2bd5d03743
@ -86,6 +86,9 @@ proc pollForAttesterDuties*(vc: ValidatorClientRef,
|
||||
res.add(index)
|
||||
res
|
||||
|
||||
if validatorIndices.len == 0:
|
||||
return 0
|
||||
|
||||
var duties: seq[RestAttesterDuty]
|
||||
var currentRoot: Option[Eth2Digest]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user