aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-08 18:29:49 +0800
committerobscuren <geffobscura@gmail.com>2014-10-08 18:29:49 +0800
commit4de3ad1712ce0fdc62b1acc27a3922b192e943c6 (patch)
treea7de24c746a0c6d3531f1fab925d4e8b48a76cd2 /peer.go
parent9d86a49a7327199c01977f3372c8adf748252c32 (diff)
downloaddexon-4de3ad1712ce0fdc62b1acc27a3922b192e943c6.tar
dexon-4de3ad1712ce0fdc62b1acc27a3922b192e943c6.tar.gz
dexon-4de3ad1712ce0fdc62b1acc27a3922b192e943c6.tar.bz2
dexon-4de3ad1712ce0fdc62b1acc27a3922b192e943c6.tar.lz
dexon-4de3ad1712ce0fdc62b1acc27a3922b192e943c6.tar.xz
dexon-4de3ad1712ce0fdc62b1acc27a3922b192e943c6.tar.zst
dexon-4de3ad1712ce0fdc62b1acc27a3922b192e943c6.zip
New block message
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/peer.go b/peer.go
index 7ed152696..24dbe88d3 100644
--- a/peer.go
+++ b/peer.go
@@ -538,7 +538,10 @@ func (p *Peer) HandleInbound() {
p.lastBlockReceived = time.Now()
}
+ case ethwire.MsgNewBlockTy:
+ p.ethereum.blockPool.AddNew(ethchain.NewBlockFromRlpValue(msg.Data), p)
}
+
}
}
}