浏览代码

eth: rely on p2p to determine block propagation

obscuren 10 年之前
父节点
当前提交
04c209980b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      eth/handler.go

+ 1 - 1
eth/handler.go

@@ -346,7 +346,7 @@ func (self *ProtocolManager) handleMsg(p *peer) error {
 		if err := request.Block.ValidateFields(); err != nil {
 			return errResp(ErrDecode, "block validation %v: %v", msg, err)
 		}
-		request.Block.ReceivedAt = time.Now()
+		request.Block.ReceivedAt = msg.ReceivedAt
 
 		hash := request.Block.Hash()
 		// Add the block hash as a known hash to the peer. This will later be used to determine