[node] change min_peers to 32

Signed-off-by: Leo Chen <leo@harmony.one>
pull/1561/head
Leo Chen 5 years ago
parent d385233a2a
commit 559d3c964f
  1. 2
      cmd/harmony/main.go

@ -77,7 +77,7 @@ var (
dnsZone = flag.String("dns_zone", "", "if given and not empty, use peers from the zone (default: use libp2p peer discovery instead)") dnsZone = flag.String("dns_zone", "", "if given and not empty, use peers from the zone (default: use libp2p peer discovery instead)")
dnsFlag = flag.Bool("dns", true, "[deprecated] equivalent to -dns_zone t.hmny.io") dnsFlag = flag.Bool("dns", true, "[deprecated] equivalent to -dns_zone t.hmny.io")
//Leader needs to have a minimal number of peers to start consensus //Leader needs to have a minimal number of peers to start consensus
minPeers = flag.Int("min_peers", 100, "Minimal number of Peers in shard") minPeers = flag.Int("min_peers", 32, "Minimal number of Peers in shard")
// Key file to store the private key // Key file to store the private key
keyFile = flag.String("key", "./.hmykey", "the p2p key file of the harmony node") keyFile = flag.String("key", "./.hmykey", "the p2p key file of the harmony node")
// isGenesis indicates this node is a genesis node // isGenesis indicates this node is a genesis node

Loading…
Cancel
Save