mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
eth: mark blocks as known when broadcasting hashes too
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user