mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-06-08 07:02:55 -04:00
set max monerod connections per ip
This commit is contained in:
parent
4ed5c3758d
commit
5764a1959f
2 changed files with 5 additions and 1 deletions
|
@ -36,6 +36,7 @@ services:
|
||||||
"--no-zmq",
|
"--no-zmq",
|
||||||
"--add-exclusive-node=127.0.0.1:28080",
|
"--add-exclusive-node=127.0.0.1:28080",
|
||||||
"--max-connections-per-ip=10",
|
"--max-connections-per-ip=10",
|
||||||
|
"--rpc-max-connections-per-private-ip=100",
|
||||||
"--rpc-access-control-origins=http://localhost:8080",
|
"--rpc-access-control-origins=http://localhost:8080",
|
||||||
"--fixed-difficulty=150",
|
"--fixed-difficulty=150",
|
||||||
"--non-interactive",
|
"--non-interactive",
|
||||||
|
@ -57,6 +58,7 @@ services:
|
||||||
"--confirm-external-bind",
|
"--confirm-external-bind",
|
||||||
"--add-exclusive-node=127.0.0.1:48080",
|
"--add-exclusive-node=127.0.0.1:48080",
|
||||||
"--max-connections-per-ip=10",
|
"--max-connections-per-ip=10",
|
||||||
|
"--rpc-max-connections-per-private-ip=100",
|
||||||
"--rpc-access-control-origins=http://localhost:8080",
|
"--rpc-access-control-origins=http://localhost:8080",
|
||||||
"--fixed-difficulty=150",
|
"--fixed-difficulty=150",
|
||||||
"--non-interactive",
|
"--non-interactive",
|
||||||
|
|
|
@ -840,7 +840,9 @@ test("Can manage Monero daemon connections (Test, CI)", async () => {
|
||||||
"--confirm-external-bind",
|
"--confirm-external-bind",
|
||||||
"--rpc-access-control-origins", "http://127.0.0.1:8080",
|
"--rpc-access-control-origins", "http://127.0.0.1:8080",
|
||||||
"--fixed-difficulty", "500",
|
"--fixed-difficulty", "500",
|
||||||
"--disable-rpc-ban"
|
"--disable-rpc-ban",
|
||||||
|
"--rpc-max-connections-per-private-ip", "100",
|
||||||
|
"--max-connections-per-ip", "10"
|
||||||
];
|
];
|
||||||
if (getBaseCurrencyNetwork() !== BaseCurrencyNetwork.XMR_MAINNET) cmd.push("--" + moneroTs.MoneroNetworkType.toString(TestConfig.networkType).toLowerCase());
|
if (getBaseCurrencyNetwork() !== BaseCurrencyNetwork.XMR_MAINNET) cmd.push("--" + moneroTs.MoneroNetworkType.toString(TestConfig.networkType).toLowerCase());
|
||||||
if (TestConfig.monerod3.username) cmd.push("--rpc-login", TestConfig.monerod3.username + ":" + TestConfig.monerod3.password);
|
if (TestConfig.monerod3.username) cmd.push("--rpc-login", TestConfig.monerod3.username + ":" + TestConfig.monerod3.password);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue