mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
Ensure finalized root can't be zeros (#10791)
This commit is contained in:
parent
3ff285dda5
commit
87251d627d
@ -373,7 +373,7 @@ func (s *Service) fillInForkChoiceMissingBlocks(ctx context.Context, blk interfa
|
||||
pendingRoots = append(pendingRoots, copiedRoot)
|
||||
root = bytesutil.ToBytes32(b.Block().ParentRoot())
|
||||
}
|
||||
if len(pendingRoots) > 0 && root != bytesutil.ToBytes32(finalized.Root) {
|
||||
if len(pendingRoots) > 0 && root != s.ensureRootNotZeros(bytesutil.ToBytes32(finalized.Root)) {
|
||||
return errNotDescendantOfFinalized
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user