diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-05 00:11:06 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-06-08 23:44:02 +0800 |
commit | 8c012e103faf2283e9be3fab26dbcf4cc63c09da (patch) | |
tree | c8b1dbe4b436947da27d166e181f6062a44246fc | |
parent | 6f415b96b3b8581e810a8f40f596d2d213681e54 (diff) | |
download | go-tangerine-8c012e103faf2283e9be3fab26dbcf4cc63c09da.tar go-tangerine-8c012e103faf2283e9be3fab26dbcf4cc63c09da.tar.gz go-tangerine-8c012e103faf2283e9be3fab26dbcf4cc63c09da.tar.bz2 go-tangerine-8c012e103faf2283e9be3fab26dbcf4cc63c09da.tar.lz go-tangerine-8c012e103faf2283e9be3fab26dbcf4cc63c09da.tar.xz go-tangerine-8c012e103faf2283e9be3fab26dbcf4cc63c09da.tar.zst go-tangerine-8c012e103faf2283e9be3fab26dbcf4cc63c09da.zip |
eth: mark blocks as known when broadcasting hashes too
-rw-r--r-- | eth/peer.go | 3 |
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) } |