diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-29 22:37:55 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-07-01 00:00:01 +0800 |
commit | af51dc4d637dbbb0d416032304f84d52d4f6d951 (patch) | |
tree | 2d455e99559c58e28bddfb8981d44d844b3cddd1 /eth/handler.go | |
parent | aac2b6ae4c5cf6f78547159c47f9192babe3e6dd (diff) | |
download | dexon-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar dexon-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar.gz dexon-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar.bz2 dexon-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar.lz dexon-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar.xz dexon-af51dc4d637dbbb0d416032304f84d52d4f6d951.tar.zst dexon-af51dc4d637dbbb0d416032304f84d52d4f6d951.zip |
eth, eth/downloader: pass the eth protocol version through
Diffstat (limited to 'eth/handler.go')
-rw-r--r-- | eth/handler.go | 2 |
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 |