mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
swarm/network: minor bug in kademlia method
This commit is contained in:
parent
a924c8572e
commit
c15eba20dd
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@ func NewPeerPot(kadMinProxSize int, ids ...*adapters.NodeId) map[discover.NodeID
|
||||||
// create a table of all nodes for health check
|
// create a table of all nodes for health check
|
||||||
np := pot.NewPot(nil, 0)
|
np := pot.NewPot(nil, 0)
|
||||||
for _, id := range ids {
|
for _, id := range ids {
|
||||||
o := ToOverlayAddr(id)
|
o := ToOverlayAddr(id.Bytes())
|
||||||
np, _, _ = pot.Add(np, pot.NewBytesVal(o, nil))
|
np, _, _ = pot.Add(np, pot.NewBytesVal(o, nil))
|
||||||
}
|
}
|
||||||
nnmap := make(map[discover.NodeID][][]byte)
|
nnmap := make(map[discover.NodeID][][]byte)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue