mirror of https://github.com/status-im/op-geth.git
eth: mark blocks as known when broadcasting hashes too
This commit is contained in:
parent
6f415b96b3
commit
8c012e103f
|
@ -89,6 +89,9 @@ func (p *peer) sendBlocks(blocks []*types.Block) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *peer) sendNewBlockHashes(hashes []common.Hash) error {
|
func (p *peer) sendNewBlockHashes(hashes []common.Hash) error {
|
||||||
|
for _, hash := range hashes {
|
||||||
|
p.blockHashes.Add(hash)
|
||||||
|
}
|
||||||
return p2p.Send(p.rw, NewBlockHashesMsg, hashes)
|
return p2p.Send(p.rw, NewBlockHashesMsg, hashes)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue