mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Don't ban blocks for context deadlines (#7040)
* Don't ban blocks for context deadlines * Don't ban blocks for context deadlines * Add test * Merge branch 'master' into dont-ban-ctx-deadline2 * fmt
This commit is contained in:
@@ -90,7 +90,7 @@ func (s *Service) processPendingBlocks(ctx context.Context) error {
|
||||
if parentIsBad || blockIsBad {
|
||||
// Set block as bad if its parent block is bad too.
|
||||
if parentIsBad {
|
||||
s.setBadBlock(blkRoot)
|
||||
s.setBadBlock(ctx, blkRoot)
|
||||
}
|
||||
// Remove block from queue.
|
||||
s.pendingQueueLock.Lock()
|
||||
@@ -142,7 +142,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)
|
||||
s.setBadBlock(blkRoot)
|
||||
s.setBadBlock(ctx, blkRoot)
|
||||
traceutil.AnnotateError(span, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user