diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-13 18:13:43 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-13 18:13:43 +0800 |
commit | d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3 (patch) | |
tree | 78a0226189f77ff05f73b773dbdcfd0a8e077d72 /eth/handler.go | |
parent | 6dec90464dc2a263a5bcb72fdbff6c5439fb07dc (diff) | |
download | go-tangerine-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar go-tangerine-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar.gz go-tangerine-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar.bz2 go-tangerine-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar.lz go-tangerine-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar.xz go-tangerine-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.tar.zst go-tangerine-d2d5dbc6fbdb613a0c5b1967ee82a74cd94739a3.zip |
eth/downloader: fix active peer shadowing, polish func names
Diffstat (limited to 'eth/handler.go')
-rw-r--r-- | eth/handler.go | 4 |
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 |