|
|
@ -65,6 +65,8 @@ func TestHarmonyFlags(t *testing.T) { |
|
|
|
MaxConnsPerIP: 5, |
|
|
|
MaxConnsPerIP: 5, |
|
|
|
DisablePrivateIPScan: false, |
|
|
|
DisablePrivateIPScan: false, |
|
|
|
MaxPeers: defaultConfig.P2P.MaxPeers, |
|
|
|
MaxPeers: defaultConfig.P2P.MaxPeers, |
|
|
|
|
|
|
|
ConnManagerLowWatermark: defaultConfig.P2P.ConnManagerLowWatermark, |
|
|
|
|
|
|
|
ConnManagerHighWatermark: defaultConfig.P2P.ConnManagerHighWatermark, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
HTTP: harmonyconfig.HttpConfig{ |
|
|
|
HTTP: harmonyconfig.HttpConfig{ |
|
|
@ -374,6 +376,8 @@ func TestP2PFlags(t *testing.T) { |
|
|
|
MaxConnsPerIP: 10, |
|
|
|
MaxConnsPerIP: 10, |
|
|
|
DisablePrivateIPScan: false, |
|
|
|
DisablePrivateIPScan: false, |
|
|
|
MaxPeers: defaultConfig.P2P.MaxPeers, |
|
|
|
MaxPeers: defaultConfig.P2P.MaxPeers, |
|
|
|
|
|
|
|
ConnManagerLowWatermark: defaultConfig.P2P.ConnManagerLowWatermark, |
|
|
|
|
|
|
|
ConnManagerHighWatermark: defaultConfig.P2P.ConnManagerHighWatermark, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -386,6 +390,8 @@ func TestP2PFlags(t *testing.T) { |
|
|
|
MaxConnsPerIP: 10, |
|
|
|
MaxConnsPerIP: 10, |
|
|
|
DisablePrivateIPScan: false, |
|
|
|
DisablePrivateIPScan: false, |
|
|
|
MaxPeers: defaultConfig.P2P.MaxPeers, |
|
|
|
MaxPeers: defaultConfig.P2P.MaxPeers, |
|
|
|
|
|
|
|
ConnManagerLowWatermark: defaultConfig.P2P.ConnManagerLowWatermark, |
|
|
|
|
|
|
|
ConnManagerHighWatermark: defaultConfig.P2P.ConnManagerHighWatermark, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -399,6 +405,8 @@ func TestP2PFlags(t *testing.T) { |
|
|
|
MaxConnsPerIP: 5, |
|
|
|
MaxConnsPerIP: 5, |
|
|
|
DisablePrivateIPScan: false, |
|
|
|
DisablePrivateIPScan: false, |
|
|
|
MaxPeers: defaultConfig.P2P.MaxPeers, |
|
|
|
MaxPeers: defaultConfig.P2P.MaxPeers, |
|
|
|
|
|
|
|
ConnManagerLowWatermark: defaultConfig.P2P.ConnManagerLowWatermark, |
|
|
|
|
|
|
|
ConnManagerHighWatermark: defaultConfig.P2P.ConnManagerHighWatermark, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -412,6 +420,8 @@ func TestP2PFlags(t *testing.T) { |
|
|
|
MaxConnsPerIP: nodeconfig.DefaultMaxConnPerIP, |
|
|
|
MaxConnsPerIP: nodeconfig.DefaultMaxConnPerIP, |
|
|
|
DisablePrivateIPScan: true, |
|
|
|
DisablePrivateIPScan: true, |
|
|
|
MaxPeers: defaultConfig.P2P.MaxPeers, |
|
|
|
MaxPeers: defaultConfig.P2P.MaxPeers, |
|
|
|
|
|
|
|
ConnManagerLowWatermark: defaultConfig.P2P.ConnManagerLowWatermark, |
|
|
|
|
|
|
|
ConnManagerHighWatermark: defaultConfig.P2P.ConnManagerHighWatermark, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -425,6 +435,8 @@ func TestP2PFlags(t *testing.T) { |
|
|
|
MaxConnsPerIP: nodeconfig.DefaultMaxConnPerIP, |
|
|
|
MaxConnsPerIP: nodeconfig.DefaultMaxConnPerIP, |
|
|
|
DisablePrivateIPScan: defaultConfig.P2P.DisablePrivateIPScan, |
|
|
|
DisablePrivateIPScan: defaultConfig.P2P.DisablePrivateIPScan, |
|
|
|
MaxPeers: 100, |
|
|
|
MaxPeers: 100, |
|
|
|
|
|
|
|
ConnManagerLowWatermark: defaultConfig.P2P.ConnManagerLowWatermark, |
|
|
|
|
|
|
|
ConnManagerHighWatermark: defaultConfig.P2P.ConnManagerHighWatermark, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
WaitForEachPeerToConnect: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|