Skip to content

Commit e7d24b8

Browse files
authored
Merge pull request #113 from renaynay/remove-block
fix(p2p/exchange): Remove peer blocking from head request
2 parents e75d00d + a2895a7 commit e7d24b8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

p2p/exchange.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ func (ex *Exchange[H]) Head(ctx context.Context, opts ...header.HeadOption[H]) (
163163
headerRespCh <- headers[0]
164164
return
165165
}
166-
// bad head was given, block peer
167-
ex.peerTracker.blockPeer(from, fmt.Errorf("returned bad head: %w", err))
168166
log.Errorw("verifying head received from tracked peer", "tracked peer", from,
169167
"height", headers[0].Height(), "err", err)
170168
headerRespCh <- zero

0 commit comments

Comments
 (0)