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.add(index)
|
||||||
res
|
res
|
||||||
|
|
||||||
|
if validatorIndices.len == 0:
|
||||||
|
return 0
|
||||||
|
|
||||||
var duties: seq[RestAttesterDuty]
|
var duties: seq[RestAttesterDuty]
|
||||||
var currentRoot: Option[Eth2Digest]
|
var currentRoot: Option[Eth2Digest]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue