diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-14 19:57:08 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-14 19:57:08 +0800 |
commit | ff2cf2dacd3470e7c2800e2f3644cfc05dfa6c4e (patch) | |
tree | a24053606d175398e2895d4e08e7c5b6f710f66b /peer.go | |
parent | 3ac74b1e7840720e8ae426c751328ed7595188a8 (diff) | |
parent | f4fa0d48cb10f925908062357be965c54370cba9 (diff) | |
download | go-tangerine-ff2cf2dacd3470e7c2800e2f3644cfc05dfa6c4e.tar.gz go-tangerine-ff2cf2dacd3470e7c2800e2f3644cfc05dfa6c4e.tar.zst go-tangerine-ff2cf2dacd3470e7c2800e2f3644cfc05dfa6c4e.zip |
Merge branch 'develop' of github.com:ethereum/eth-go into develop
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -583,8 +583,8 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) { p.port = uint16(c.Get(4).Uint()) // Self connect detection - key := ethutil.Config.Db.GetKeys()[0] - if bytes.Compare(key.PublicKey, p.pubkey) == 0 { + keyPair := ethutil.GetKeyRing().Get(0) + if bytes.Compare(keyPair.PublicKey, p.pubkey) == 0 { p.Stop() return |