swarm/network: minor bug in kademlia method

This commit is contained in:
nolash 2017-05-18 08:23:28 +02:00
parent a924c8572e
commit c15eba20dd

View file

@ -506,7 +506,7 @@ func NewPeerPot(kadMinProxSize int, ids ...*adapters.NodeId) map[discover.NodeID
// create a table of all nodes for health check
np := pot.NewPot(nil, 0)
for _, id := range ids {
o := ToOverlayAddr(id)
o := ToOverlayAddr(id.Bytes())
np, _, _ = pot.Add(np, pot.NewBytesVal(o, nil))
}
nnmap := make(map[discover.NodeID][][]byte)