From 8c012e103faf2283e9be3fab26dbcf4cc63c09da Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Thu, 4 Jun 2015 19:11:06 +0300 Subject: eth: mark blocks as known when broadcasting hashes too --- eth/peer.go | 3 +++ 1 file changed, 3 insertions(+) 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) } -- cgit