eth, eth/downloader: pass the eth protocol version through

This commit is contained in:
Péter Szilágyi
2015-06-30 19:00:01 +03:00
parent aac2b6ae4c
commit af51dc4d63
4 changed files with 45 additions and 36 deletions
+1 -1
View File
@@ -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