aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
Diffstat (limited to 'eth')
-rw-r--r--eth/peer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/eth/peer.go b/eth/peer.go
index 1146ebde3..5a59c1a40 100644
--- a/eth/peer.go
+++ b/eth/peer.go
@@ -89,6 +89,9 @@ func (p *peer) sendBlocks(blocks []*types.Block) error {
}
func (p *peer) sendNewBlockHashes(hashes []common.Hash) error {
+ for _, hash := range hashes {
+ p.blockHashes.Add(hash)
+ }
return p2p.Send(p.rw, NewBlockHashesMsg, hashes)
}