diff --git a/utils/utils.go b/utils/utils.go index c5e29503e..4097edf35 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -21,6 +21,7 @@ func ConvertFixedDataIntoByteArray(data interface{}) []byte { return buff.Bytes() } +// TODO(minhdoan): this is probably a hack, probably needs some strong non-collision hash. func GetUniqueIdFromPeer(peer p2p.Peer) uint16 { reg, err := regexp.Compile("[^0-9]+") if err != nil {