mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-18 03:07:51 +01:00
Export PublicKey2NodeID
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user