aboutsummaryrefslogtreecommitdiffstats
path: root/eth/handler.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-29 22:37:55 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-07-01 00:00:01 +0800
commitaf51dc4d637dbbb0d416032304f84d52d4f6d951 (patch)
tree2d455e99559c58e28bddfb8981d44d844b3cddd1 /eth/handler.go
parentaac2b6ae4c5cf6f78547159c47f9192babe3e6dd (diff)
downloadgo-tangerine-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar
go-tangerine-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar.gz
go-tangerine-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar.bz2
go-tangerine-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar.lz
go-tangerine-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar.xz
go-tangerine-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar.zst
go-tangerine-af51dc4d637dbbb0d416032304f84d52d4f6d951.zip
eth, eth/downloader: pass the eth protocol version through
Diffstat (limited to 'eth/handler.go')
-rw-r--r--eth/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/handler.go b/eth/handler.go
index 3705f5bb6..712d65220 100644
--- a/eth/handler.go
+++ b/eth/handler.go
@@ -181,7 +181,7 @@ func (pm *ProtocolManager) handle(p *peer) error {
defer pm.removePeer(p.id)
// Register the peer in the downloader. If the downloader considers it banned, we disconnect
- if err := pm.downloader.RegisterPeer(p.id, p.Head(), p.RequestHashes, p.RequestBlocks); err != nil {
+ if err := pm.downloader.RegisterPeer(p.id, p.version, p.Head(), p.RequestHashes, p.RequestBlocks); err != nil {
return err
}
// Propagate existing transactions. new transactions appearing