The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/runbeacon/run-beacon.go

16 lines
400 B

package main
import (
"flag"
"github.com/harmony-one/harmony/beaconchain"
)
func main() {
numShards := flag.Int("numShards", 1, "number of shards of identity chain")
ip := flag.String("ip", "127.0.0.1", "ip on which beaconchain listens")
port := flag.String("port", "8081", "port on which beaconchain listens")
flag.Parse()
bc := beaconchain.New(*numShards, *ip, *port)
bc.StartServer()
}