Skip to content

Commit

Permalink
fix: whitelist/requiredblocks regression (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 authored and cffls committed Aug 23, 2022
1 parent 54719fb commit 367f43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func (h *handler) runEthPeer(peer *eth.Peer, handler eth.Handler) error {
}()
}
// If we have any explicit peer required block hashes, request them
for number := range h.peerRequiredBlocks {
for number, hash := range h.peerRequiredBlocks {
resCh := make(chan *eth.Response)
if _, err := peer.RequestHeadersByNumber(number, 1, 0, false, resCh); err != nil {
return err
Expand Down

0 comments on commit 367f43b

Please sign in to comment.