diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-14 19:54:40 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-14 19:54:40 +0800 |
commit | f4fa0d48cb10f925908062357be965c54370cba9 (patch) | |
tree | 4b274e1a6a25fb6a468d52a2e1e67775b42d0a0f /peer.go | |
parent | 0512113bdd5cc55ae35abd442b668ab5ed7a116b (diff) | |
download | go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.gz go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.zst go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.zip |
Moved keyring to ethutil & removed old methods. Implements #20
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -581,8 +581,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 |