aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-30 04:50:58 +0800
committerobscuren <geffobscura@gmail.com>2015-04-30 04:50:58 +0800
commit04c209980bdecb848ae6e397e808e62aecaece39 (patch)
tree8d5924a35a4d2e02503afe6fd63b70ea13b63909
parent01e3d694a68b55d44d92754db5e84eb2930988ab (diff)
downloaddexon-04c209980bdecb848ae6e397e808e62aecaece39.tar.gz
dexon-04c209980bdecb848ae6e397e808e62aecaece39.tar.zst
dexon-04c209980bdecb848ae6e397e808e62aecaece39.zip
eth: rely on p2p to determine block propagation
-rw-r--r--eth/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/handler.go b/eth/handler.go
index f7610e9e3..fecd71632 100644
--- a/eth/handler.go
+++ b/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