mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 04:30:04 +00:00
Revert "Sync: Dont ban block roots for context.DeadlineExceeded" (#7017)
* Revert "Sync: Dont ban block roots for context.DeadlineExceeded (#7016)"
This reverts commit a4bbd82a45
.
* Merge refs/heads/master into revert-7016-dont-ban-ctx-deadline
This commit is contained in:
parent
715cd40f56
commit
c3725d11f2
@ -131,9 +131,7 @@ func (s *Service) processPendingBlocks(ctx context.Context) error {
|
||||
|
||||
if err := s.chain.ReceiveBlock(ctx, b, blkRoot); err != nil {
|
||||
log.Debugf("Could not process block from slot %d: %v", b.Block.Slot, err)
|
||||
if err != context.DeadlineExceeded {
|
||||
s.setBadBlock(blkRoot)
|
||||
}
|
||||
s.setBadBlock(blkRoot)
|
||||
traceutil.AnnotateError(span, err)
|
||||
}
|
||||
|
||||
|
@ -32,9 +32,7 @@ func (s *Service) beaconBlockSubscriber(ctx context.Context, msg proto.Message)
|
||||
|
||||
if err := s.chain.ReceiveBlock(ctx, signed, root); err != nil {
|
||||
interop.WriteBlockToDisk(signed, true /*failed*/)
|
||||
if err != context.DeadlineExceeded {
|
||||
s.setBadBlock(root)
|
||||
}
|
||||
s.setBadBlock(root)
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user