diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-28 23:45:29 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-28 23:45:29 +0800 |
commit | 601340bd464e3ebae0e4fa3407be5fff3bb3fcbf (patch) | |
tree | 0754f60c7154bc74042e41769b9b4da824f9126d /peer.go | |
parent | 839bd73fbb525f6c51e4205ce6519b6154cda2f0 (diff) | |
download | go-tangerine-601340bd464e3ebae0e4fa3407be5fff3bb3fcbf.tar.gz go-tangerine-601340bd464e3ebae0e4fa3407be5fff3bb3fcbf.tar.zst go-tangerine-601340bd464e3ebae0e4fa3407be5fff3bb3fcbf.zip |
Fixed shutting down
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 |