|
|
@ -1,5 +1,7 @@ |
|
|
|
package main |
|
|
|
package main |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import "fmt" |
|
|
|
|
|
|
|
|
|
|
|
// import (
|
|
|
|
// import (
|
|
|
|
// "flag"
|
|
|
|
// "flag"
|
|
|
|
|
|
|
|
|
|
|
@ -7,12 +9,13 @@ package main |
|
|
|
// "github.com/simple-rules/harmony-benchmark/waitnode"
|
|
|
|
// "github.com/simple-rules/harmony-benchmark/waitnode"
|
|
|
|
// )
|
|
|
|
// )
|
|
|
|
|
|
|
|
|
|
|
|
// func main() {
|
|
|
|
func main() { |
|
|
|
// ip := flag.String("ip", "127.0.0.0", "IP of the node")
|
|
|
|
fmt.Println("hello") |
|
|
|
// port := flag.String("port", "8080", "port of the node")
|
|
|
|
// ip := flag.String("ip", "127.0.0.0", "IP of the node")
|
|
|
|
// flag.Parse()
|
|
|
|
// port := flag.String("port", "8080", "port of the node")
|
|
|
|
// peer := p2p.Peer{Ip: *ip, Port: *port}
|
|
|
|
// flag.Parse()
|
|
|
|
// idcpeer := p2p.Peer{Ip: "localhost", Port: "9000"} //Hardcoded here.
|
|
|
|
// peer := p2p.Peer{Ip: *ip, Port: *port}
|
|
|
|
// node := waitnode.New(peer)
|
|
|
|
// idcpeer := p2p.Peer{Ip: "localhost", Port: "9000"} //Hardcoded here.
|
|
|
|
// node.ConnectIdentityChain(idcpeer)
|
|
|
|
// node := waitnode.New(peer)
|
|
|
|
// }
|
|
|
|
// node.ConnectIdentityChain(idcpeer)
|
|
|
|
|
|
|
|
} |
|
|
|