提交 8c012e10 编写于 作者: P Péter Szilágyi

eth: mark blocks as known when broadcasting hashes too

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册