aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discover/udp.go
diff options
context:
space:
mode:
Diffstat (limited to 'p2p/discover/udp.go')
-rw-r--r--p2p/discover/udp.go4
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
}