diff options
author | Felix Lange <fjl@twurst.com> | 2015-02-05 10:07:18 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-02-06 07:00:36 +0800 |
commit | 739066ec56393e63b93531787746fb8ba5f1df15 (patch) | |
tree | 6826ff78a688745e7b01044b06b82af9ea51b6e2 /p2p/discover/udp.go | |
parent | 12224c7f5924720767d73f06ed4571dc3ce2f092 (diff) | |
download | dexon-739066ec56393e63b93531787746fb8ba5f1df15.tar dexon-739066ec56393e63b93531787746fb8ba5f1df15.tar.gz dexon-739066ec56393e63b93531787746fb8ba5f1df15.tar.bz2 dexon-739066ec56393e63b93531787746fb8ba5f1df15.tar.lz dexon-739066ec56393e63b93531787746fb8ba5f1df15.tar.xz dexon-739066ec56393e63b93531787746fb8ba5f1df15.tar.zst dexon-739066ec56393e63b93531787746fb8ba5f1df15.zip |
p2p/discover: add some helper functions
Diffstat (limited to 'p2p/discover/udp.go')
-rw-r--r-- | p2p/discover/udp.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/discover/udp.go b/p2p/discover/udp.go index ec1f62dac..449139c1d 100644 --- a/p2p/discover/udp.go +++ b/p2p/discover/udp.go @@ -120,8 +120,8 @@ func ListenUDP(priv *ecdsa.PrivateKey, laddr string) (*Table, error) { if err != nil { return nil, err } - net.Table = newTable(net, newNodeID(priv), realaddr) - log.DebugDetailf("Listening on %v, my ID %x\n", realaddr, net.self.ID[:]) + net.Table = newTable(net, PubkeyID(&priv.PublicKey), realaddr) + log.Debugf("Listening on %v, my ID %x\n", realaddr, net.self.ID[:]) return net.Table, nil } |