mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 03:26:38 +00:00
eth: rely on p2p to determine block propagation
This commit is contained in:
parent
01e3d694a6
commit
04c209980b
1 changed files with 1 additions and 1 deletions
|
|
@ -346,7 +346,7 @@ func (self *ProtocolManager) handleMsg(p *peer) error {
|
||||||
if err := request.Block.ValidateFields(); err != nil {
|
if err := request.Block.ValidateFields(); err != nil {
|
||||||
return errResp(ErrDecode, "block validation %v: %v", msg, err)
|
return errResp(ErrDecode, "block validation %v: %v", msg, err)
|
||||||
}
|
}
|
||||||
request.Block.ReceivedAt = time.Now()
|
request.Block.ReceivedAt = msg.ReceivedAt
|
||||||
|
|
||||||
hash := request.Block.Hash()
|
hash := request.Block.Hash()
|
||||||
// Add the block hash as a known hash to the peer. This will later be used to determine
|
// Add the block hash as a known hash to the peer. This will later be used to determine
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue