aboutsummaryrefslogtreecommitdiffstats
path: root/eth/handler.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-13 18:13:43 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-13 18:13:43 +0800
commitd2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3 (patch)
tree78a0226189f77ff05f73b773dbdcfd0a8e077d72 /eth/handler.go
parent6dec90464dc2a263a5bcb72fdbff6c5439fb07dc (diff)
downloaddexon-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar
dexon-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar.gz
dexon-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar.bz2
dexon-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar.lz
dexon-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar.xz
dexon-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar.zst
dexon-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.zip
eth/downloader: fix active peer shadowing, polish func names
Diffstat (limited to 'eth/handler.go')
-rw-r--r--eth/handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/handler.go b/eth/handler.go
index 88394543e..b2d741295 100644
--- a/eth/handler.go
+++ b/eth/handler.go
@@ -224,7 +224,7 @@ func (self *ProtocolManager) handleMsg(p *peer) error {
if err := msgStream.Decode(&hashes); err != nil {
break
}
- err := self.downloader.AddHashes(p.id, hashes)
+ err := self.downloader.DeliverHashes(p.id, hashes)
if err != nil {
glog.V(logger.Debug).Infoln(err)
}
@@ -264,7 +264,7 @@ func (self *ProtocolManager) handleMsg(p *peer) error {
glog.V(logger.Detail).Infoln("Decode error", err)
blocks = nil
}
- self.downloader.DeliverChunk(p.id, blocks)
+ self.downloader.DeliverBlocks(p.id, blocks)
case NewBlockMsg:
var request newBlockMsgData