|
|
|
@ -91,8 +91,8 @@ func main() { |
|
|
|
|
onlyLogTps := flag.Bool("only_log_tps", false, "Only log TPS if true") |
|
|
|
|
|
|
|
|
|
//This IP belongs to jenkins.harmony.one
|
|
|
|
|
idcIP := flag.String("idc", "127.0.0.1", "IP of the identity chain") |
|
|
|
|
idcPort := flag.String("idc_port", "8081", "port of the identity chain") |
|
|
|
|
bcIP := flag.String("bc", "127.0.0.1", "IP of the identity chain") |
|
|
|
|
bcPort := flag.String("bc_port", "8081", "port of the identity chain") |
|
|
|
|
peerDiscovery := flag.Bool("peer_discovery", false, "Enable Peer Discovery") |
|
|
|
|
|
|
|
|
|
//Leader needs to have a minimal number of peers to start consensus
|
|
|
|
@ -118,7 +118,7 @@ func main() { |
|
|
|
|
//Use Peer Discovery to get shard/leader/peer/...
|
|
|
|
|
if *peerDiscovery { |
|
|
|
|
candidateNode := pkg_newnode.New(*ip, *port) |
|
|
|
|
BCPeer := p2p.Peer{IP: *idcIP, Port: *idcPort} |
|
|
|
|
BCPeer := p2p.Peer{IP: *bcIP, Port: *bcPort} |
|
|
|
|
candidateNode.ContactBeaconChain(BCPeer) |
|
|
|
|
shardID = candidateNode.GetShardID() |
|
|
|
|
leader = candidateNode.GetLeader() |
|
|
|
|