diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-28 23:45:54 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-28 23:45:54 +0800 |
commit | ceada15290b6c8373c3bfaed86d953dd2a522d2b (patch) | |
tree | 170a5b8bbf6e791eb0c4b2aab0b56ced706539ab /peer.go | |
parent | 839bd73fbb525f6c51e4205ce6519b6154cda2f0 (diff) | |
parent | b462ca4aade75049a0fcba23c54e340f0f793dfb (diff) | |
download | dexon-ceada15290b6c8373c3bfaed86d953dd2a522d2b.tar dexon-ceada15290b6c8373c3bfaed86d953dd2a522d2b.tar.gz dexon-ceada15290b6c8373c3bfaed86d953dd2a522d2b.tar.bz2 dexon-ceada15290b6c8373c3bfaed86d953dd2a522d2b.tar.lz dexon-ceada15290b6c8373c3bfaed86d953dd2a522d2b.tar.xz dexon-ceada15290b6c8373c3bfaed86d953dd2a522d2b.tar.zst dexon-ceada15290b6c8373c3bfaed86d953dd2a522d2b.zip |
Merge branch 'hotfix/0.3.1'
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -511,9 +511,8 @@ func (p *Peer) handleHandshake(msg *ethwire.Msg) { p.port = uint16(c.Get(4).Uint()) // Self connect detection - data, _ := ethutil.Config.Db.Get([]byte("KeyRing")) - pubkey := ethutil.NewValueFromBytes(data).Get(2).Bytes() - if bytes.Compare(pubkey, p.pubkey) == 0 { + key := ethutil.Config.Db.GetKeys()[0] + if bytes.Compare(key.PublicKey, p.pubkey) == 0 { p.Stop() return |