mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 04:00:05 +00:00
Skip accessing peer status if it does not exist (#4226)
* skip accessing peer status if it does not exist * Merge refs/heads/master into fix-panic-rr
This commit is contained in:
parent
0cb681476e
commit
92d21c72b8
@ -306,6 +306,9 @@ func bestFinalized() ([]byte, uint64, []peer.ID) {
|
||||
rootToEpoch := make(map[[32]byte]uint64)
|
||||
for _, k := range peerstatus.Keys() {
|
||||
s := peerstatus.Get(k)
|
||||
if s == nil {
|
||||
continue
|
||||
}
|
||||
r := bytesutil.ToBytes32(s.FinalizedRoot)
|
||||
finalized[r]++
|
||||
rootToEpoch[r] = s.FinalizedEpoch
|
||||
|
Loading…
Reference in New Issue
Block a user