diff --git a/runwait/run_wait.go b/runwait/run_wait.go index 32bc38ede..66315a8a4 100644 --- a/runwait/run_wait.go +++ b/runwait/run_wait.go @@ -7,12 +7,12 @@ package main // "github.com/simple-rules/harmony-benchmark/waitnode" // ) -// func main() { -// ip := flag.String("ip", "127.0.0.0", "IP of the node") -// port := flag.String("port", "8080", "port of the node") -// flag.Parse() -// peer := p2p.Peer{Ip: *ip, Port: *port} -// idcpeer := p2p.Peer{Ip: "localhost", Port: "9000"} //Hardcoded here. -// node := waitnode.New(peer) -// node.ConnectIdentityChain(idcpeer) -// } +func main() { + // ip := flag.String("ip", "127.0.0.0", "IP of the node") + // port := flag.String("port", "8080", "port of the node") + // flag.Parse() + // peer := p2p.Peer{Ip: *ip, Port: *port} + // idcpeer := p2p.Peer{Ip: "localhost", Port: "9000"} //Hardcoded here. + // node := waitnode.New(peer) + // node.ConnectIdentityChain(idcpeer) +} 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 {