Export PublicKey2NodeID

This commit is contained in:
Kleissner
2021-07-07 02:40:07 +02:00
parent 560f019786
commit c1ccc3c344
3 changed files with 8 additions and 9 deletions

View File

@@ -437,7 +437,7 @@ func decodePeerRecord(data []byte, count int) (hash2Peers []Hash2Peer, read int,
return nil, 0, false
}
peer.NodeID = publicKey2NodeID(peer.PublicKey)
peer.NodeID = PublicKey2NodeID(peer.PublicKey)
if reason == 0 { // Peer was returned because it is close to the requested hash
hash2Peer.Closest = append(hash2Peer.Closest, peer)