Skip to content

Commit

Permalink
fix(p2p/exchange): Remove peer blocking from head request
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Oct 4, 2023
1 parent e75d00d commit a2895a7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions p2p/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ func (ex *Exchange[H]) Head(ctx context.Context, opts ...header.HeadOption[H]) (
headerRespCh <- headers[0]
return
}
// bad head was given, block peer
ex.peerTracker.blockPeer(from, fmt.Errorf("returned bad head: %w", err))
log.Errorw("verifying head received from tracked peer", "tracked peer", from,
"height", headers[0].Height(), "err", err)
headerRespCh <- zero
Expand Down

0 comments on commit a2895a7

Please sign in to comment.