parent
4a97f541cd
commit
e4187dec5e
@ -0,0 +1,19 @@ |
||||
package main |
||||
|
||||
import ( |
||||
"flag" |
||||
"fmt" |
||||
|
||||
"github.com/simple-rules/harmony-benchmark/identitychain" |
||||
"github.com/simple-rules/harmony-benchmark/p2p" |
||||
) |
||||
|
||||
func main() { |
||||
ip := flag.String("ip", "127.0.0.0", "IP of the node") |
||||
port := flag.String("port", "9000", "port of the node.") |
||||
flag.Parse() |
||||
peer := p2p.Peer{Ip: *ip, Port: *port} |
||||
IDC := identitychain.New(peer) |
||||
fmt.Println(IDC) |
||||
IDC.StartServer() |
||||
} |
@ -0,0 +1,18 @@ |
||||
package main |
||||
|
||||
import ( |
||||
"flag" |
||||
|
||||
"github.com/simple-rules/harmony-benchmark/p2p" |
||||
"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: "127.0.0.0", Port: "9000"} //Hardcoded here.
|
||||
node := waitnode.New(peer) |
||||
node.ConnectIdentityChain(idcpeer) |
||||
} |
Loading…
Reference in new issue