Commit 8c012e10 authored by Péter Szilágyi's avatar Péter Szilágyi

eth: mark blocks as known when broadcasting hashes too

parent 6f415b96
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment