parent
1f489f3776
commit
5b1d0c1d81
@ -0,0 +1,12 @@ |
||||
package main |
||||
|
||||
import ( |
||||
"github.com/simple-rules/harmony-benchmark/beaconchain" |
||||
) |
||||
|
||||
func main() { |
||||
|
||||
bc := beaconchain.New("temp") |
||||
bc.StartServer() |
||||
|
||||
} |
@ -1,26 +0,0 @@ |
||||
package main |
||||
|
||||
import ( |
||||
"flag" |
||||
"fmt" |
||||
|
||||
"github.com/simple-rules/harmony-benchmark/beaconchain" |
||||
"github.com/simple-rules/harmony-benchmark/node" |
||||
"github.com/simple-rules/harmony-benchmark/p2p" |
||||
) |
||||
|
||||
func main() { |
||||
bc := beaconchain.New("temp") |
||||
|
||||
ip := flag.String("ip", "127.0.0.0", "IP of the node") |
||||
port := flag.String("port", "8081", "port of the node.") |
||||
flag.Parse() |
||||
peer := p2p.Peer{Ip: *ip, Port: *port} |
||||
node := node.Node{} |
||||
node.SelfPeer = peer |
||||
msg := node.SerializeNode() |
||||
fmt.Print(msg) |
||||
// fmt.Println(ip)
|
||||
// fmt.Println(peer)
|
||||
fmt.Print(bc) |
||||
} |
Loading…
Reference in new issue