aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-12 19:39:37 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-12 19:39:37 +0800
commit8b4ed8c505111cb570c7c694675b833ebf0bba21 (patch)
tree90318f9daad5d480b30d8575c10cc76145ef726a /peer.go
parent4eb3ad192e58bc42dec4e44b4a8be6cb36473c0f (diff)
downloadgo-tangerine-8b4ed8c505111cb570c7c694675b833ebf0bba21.tar
go-tangerine-8b4ed8c505111cb570c7c694675b833ebf0bba21.tar.gz
go-tangerine-8b4ed8c505111cb570c7c694675b833ebf0bba21.tar.bz2
go-tangerine-8b4ed8c505111cb570c7c694675b833ebf0bba21.tar.lz
go-tangerine-8b4ed8c505111cb570c7c694675b833ebf0bba21.tar.xz
go-tangerine-8b4ed8c505111cb570c7c694675b833ebf0bba21.tar.zst
go-tangerine-8b4ed8c505111cb570c7c694675b833ebf0bba21.zip
Properly exchange peer capabilities between peers
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/peer.go b/peer.go
index 9b8b3f2ae..54e6af823 100644
--- a/peer.go
+++ b/peer.go
@@ -146,6 +146,7 @@ func NewPeer(conn net.Conn, ethereum *Ethereum, inbound bool) *Peer {
port: 30303,
pubkey: pubkey,
blocksRequested: 10,
+ caps: ethereum.ServerCaps(),
}
}
@@ -573,7 +574,6 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) {
}
// Catch up with the connected peer
- // p.CatchupWithPeer(p.ethereum.BlockChain().CurrentBlock.Hash())
p.SyncWithBlocks()
// Set the peer's caps