diff options
author | Felix Lange <fjl@twurst.com> | 2015-02-05 10:16:16 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-02-06 07:03:59 +0800 |
commit | 56f777b2fc77275bc636562b66a08b19afe2ec56 (patch) | |
tree | c9a34bd23e13adb0d850957b9a66cd748d34b3e3 /eth/protocol.go | |
parent | 8e8ec8f5f8974aafeac5e4a9ead76878fe22cefd (diff) | |
download | go-tangerine-56f777b2fc77275bc636562b66a08b19afe2ec56.tar go-tangerine-56f777b2fc77275bc636562b66a08b19afe2ec56.tar.gz go-tangerine-56f777b2fc77275bc636562b66a08b19afe2ec56.tar.bz2 go-tangerine-56f777b2fc77275bc636562b66a08b19afe2ec56.tar.lz go-tangerine-56f777b2fc77275bc636562b66a08b19afe2ec56.tar.xz go-tangerine-56f777b2fc77275bc636562b66a08b19afe2ec56.tar.zst go-tangerine-56f777b2fc77275bc636562b66a08b19afe2ec56.zip |
cmd/ethereum, cmd/mist, core, eth, javascript, xeth: fixes for new p2p API
Diffstat (limited to 'eth/protocol.go')
-rw-r--r-- | eth/protocol.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eth/protocol.go b/eth/protocol.go index d7a7fa910..fb694c877 100644 --- a/eth/protocol.go +++ b/eth/protocol.go @@ -92,13 +92,14 @@ func EthProtocol(txPool txPool, chainManager chainManager, blockPool blockPool) // the main loop that handles incoming messages // note RemovePeer in the post-disconnect hook func runEthProtocol(txPool txPool, chainManager chainManager, blockPool blockPool, peer *p2p.Peer, rw p2p.MsgReadWriter) (err error) { + id := peer.ID() self := ðProtocol{ txPool: txPool, chainManager: chainManager, blockPool: blockPool, rw: rw, peer: peer, - id: fmt.Sprintf("%x", peer.Identity().Pubkey()[:8]), + id: fmt.Sprintf("%x", id[:8]), } err = self.handleStatus() if err == nil { |