Skip to content

Commit

Permalink
Merge pull request #113 from renaynay/remove-block
Browse files Browse the repository at this point in the history
fix(p2p/exchange): Remove peer blocking from head request
  • Loading branch information
renaynay authored Oct 5, 2023
2 parents e75d00d + a2895a7 commit e7d24b8
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 e7d24b8

Please sign in to comment.