From dfe15b173f30b6bfcaa544237ad49f375fe5aaf5 Mon Sep 17 00:00:00 2001 From: skoupidi Date: Fri, 2 Jan 2026 20:01:07 +0200 Subject: [PATCH] contrib/localnet/darkfid*: added missing management rpc in all scripts --- contrib/localnet/darkfid-five-nodes/darkfid0.toml | 12 ++++++++++-- contrib/localnet/darkfid-five-nodes/darkfid1.toml | 12 ++++++++++-- contrib/localnet/darkfid-five-nodes/darkfid2.toml | 12 ++++++++++-- contrib/localnet/darkfid-five-nodes/darkfid3.toml | 12 ++++++++++-- contrib/localnet/darkfid-five-nodes/darkfid4.toml | 12 ++++++++++-- .../localnet/darkfid-five-nodes/tmux_sessions.sh | 10 +++++----- contrib/localnet/darkfid-single-node/darkfid.toml | 14 +++++++++++--- .../localnet/darkfid-single-node/tmux_sessions.sh | 2 +- contrib/localnet/darkfid-small/darkfid0.toml | 12 ++++++++++-- contrib/localnet/darkfid-small/darkfid1.toml | 12 ++++++++++-- contrib/localnet/darkfid-small/darkfid2.toml | 10 +++++++++- contrib/localnet/darkfid-small/tmux_sessions.sh | 4 ++-- 12 files changed, 98 insertions(+), 26 deletions(-) diff --git a/contrib/localnet/darkfid-five-nodes/darkfid0.toml b/contrib/localnet/darkfid-five-nodes/darkfid0.toml index 5a13e3d61..587a88d58 100644 --- a/contrib/localnet/darkfid-five-nodes/darkfid0.toml +++ b/contrib/localnet/darkfid-five-nodes/darkfid0.toml @@ -41,12 +41,20 @@ skip_fees = false rpc_listen = "tcp://127.0.0.1:48345" # Disabled RPC methods -#rpc_disabled_methods = ["p2p.get_info"] +#rpc_disabled_methods = [] + +## Localnet management JSON-RPC settings +[network_config."localnet".management_rpc] +# JSON-RPC listen URL +rpc_listen = "tcp://127.0.0.1:48346" + +# Disabled RPC methods +#rpc_disabled_methods = [] ## Localnet JSON-RPC settings for stratum mining requests (optional) [network_config."localnet".stratum_rpc] # JSON-RPC listen URL (stratum mining) -rpc_listen = "tcp://127.0.0.1:48346" +rpc_listen = "tcp://127.0.0.1:48347" ## Localnet P2P network settings [network_config."localnet".net] diff --git a/contrib/localnet/darkfid-five-nodes/darkfid1.toml b/contrib/localnet/darkfid-five-nodes/darkfid1.toml index c222c80ba..9133fe457 100644 --- a/contrib/localnet/darkfid-five-nodes/darkfid1.toml +++ b/contrib/localnet/darkfid-five-nodes/darkfid1.toml @@ -41,12 +41,20 @@ skip_fees = false rpc_listen = "tcp://127.0.0.1:48445" # Disabled RPC methods -#rpc_disabled_methods = ["p2p.get_info"] +#rpc_disabled_methods = [] + +## Localnet management JSON-RPC settings +[network_config."localnet".management_rpc] +# JSON-RPC listen URL +rpc_listen = "tcp://127.0.0.1:48446" + +# Disabled RPC methods +#rpc_disabled_methods = [] ## Localnet JSON-RPC settings for stratum mining requests (optional) [network_config."localnet".stratum_rpc] # JSON-RPC listen URL (stratum mining) -rpc_listen = "tcp://127.0.0.1:48446" +rpc_listen = "tcp://127.0.0.1:48447" ## Localnet P2P network settings [network_config."localnet".net] diff --git a/contrib/localnet/darkfid-five-nodes/darkfid2.toml b/contrib/localnet/darkfid-five-nodes/darkfid2.toml index e9084a66e..cafdcd068 100644 --- a/contrib/localnet/darkfid-five-nodes/darkfid2.toml +++ b/contrib/localnet/darkfid-five-nodes/darkfid2.toml @@ -41,12 +41,20 @@ skip_fees = false rpc_listen = "tcp://127.0.0.1:48545" # Disabled RPC methods -#rpc_disabled_methods = ["p2p.get_info"] +#rpc_disabled_methods = [] + +## Localnet management JSON-RPC settings +[network_config."localnet".management_rpc] +# JSON-RPC listen URL +rpc_listen = "tcp://127.0.0.1:48546" + +# Disabled RPC methods +#rpc_disabled_methods = [] ## Localnet JSON-RPC settings for stratum mining requests (optional) [network_config."localnet".stratum_rpc] # JSON-RPC listen URL (stratum mining) -rpc_listen = "tcp://127.0.0.1:48546" +rpc_listen = "tcp://127.0.0.1:48547" ## Localnet P2P network settings [network_config."localnet".net] diff --git a/contrib/localnet/darkfid-five-nodes/darkfid3.toml b/contrib/localnet/darkfid-five-nodes/darkfid3.toml index 37b1d68b4..ed28d70d8 100644 --- a/contrib/localnet/darkfid-five-nodes/darkfid3.toml +++ b/contrib/localnet/darkfid-five-nodes/darkfid3.toml @@ -41,12 +41,20 @@ skip_fees = false rpc_listen = "tcp://127.0.0.1:48645" # Disabled RPC methods -#rpc_disabled_methods = ["p2p.get_info"] +#rpc_disabled_methods = [] + +## Localnet management JSON-RPC settings +[network_config."localnet".management_rpc] +# JSON-RPC listen URL +rpc_listen = "tcp://127.0.0.1:48646" + +# Disabled RPC methods +#rpc_disabled_methods = [] ## Localnet JSON-RPC settings for stratum mining requests (optional) [network_config."localnet".stratum_rpc] # JSON-RPC listen URL (stratum mining) -rpc_listen = "tcp://127.0.0.1:48646" +rpc_listen = "tcp://127.0.0.1:48647" ## Localnet P2P network settings [network_config."localnet".net] diff --git a/contrib/localnet/darkfid-five-nodes/darkfid4.toml b/contrib/localnet/darkfid-five-nodes/darkfid4.toml index df8cc0b3e..2ab564342 100644 --- a/contrib/localnet/darkfid-five-nodes/darkfid4.toml +++ b/contrib/localnet/darkfid-five-nodes/darkfid4.toml @@ -41,12 +41,20 @@ skip_fees = false rpc_listen = "tcp://127.0.0.1:48745" # Disabled RPC methods -#rpc_disabled_methods = ["p2p.get_info"] +#rpc_disabled_methods = [] + +## Localnet management JSON-RPC settings +[network_config."localnet".management_rpc] +# JSON-RPC listen URL +rpc_listen = "tcp://127.0.0.1:48746" + +# Disabled RPC methods +#rpc_disabled_methods = [] ## Localnet JSON-RPC settings for stratum mining requests (optional) [network_config."localnet".stratum_rpc] # JSON-RPC listen URL (stratum mining) -rpc_listen = "tcp://127.0.0.1:48746" +rpc_listen = "tcp://127.0.0.1:48747" ## Localnet P2P network settings [network_config."localnet".net] diff --git a/contrib/localnet/darkfid-five-nodes/tmux_sessions.sh b/contrib/localnet/darkfid-five-nodes/tmux_sessions.sh index 098cb92a6..e9a4a53f9 100755 --- a/contrib/localnet/darkfid-five-nodes/tmux_sessions.sh +++ b/contrib/localnet/darkfid-five-nodes/tmux_sessions.sh @@ -20,23 +20,23 @@ else fi tmux new-session -d -s $session -n "node0" -tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48346 -t 2 -u $XMRIG_USER" Enter +tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48347 -t 2 -u $XMRIG_USER" Enter tmux split-window -t $session -v -l 80% tmux send-keys -t $session "$DARKFID -c darkfid0.toml $verbose" Enter tmux new-window -t $session -n "node1" -tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48446 -t 2 -u $XMRIG_USER" Enter +tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48447 -t 2 -u $XMRIG_USER" Enter tmux split-window -t $session -v -l 80% tmux send-keys -t $session "$DARKFID -c darkfid1.toml $verbose" Enter tmux new-window -t $session -n "node2" -tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48546 -t 2 -u $XMRIG_USER" Enter +tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48547 -t 2 -u $XMRIG_USER" Enter tmux split-window -t $session -v -l 80% tmux send-keys -t $session "$DARKFID -c darkfid2.toml $verbose" Enter tmux new-window -t $session -n "node3" -tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48646 -t 2 -u $XMRIG_USER" Enter +tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48647 -t 2 -u $XMRIG_USER" Enter tmux split-window -t $session -v -l 80% tmux send-keys -t $session "$DARKFID -c darkfid3.toml $verbose" Enter tmux new-window -t $session -n "node4" -tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48746 -t 2 -u $XMRIG_USER" Enter +tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48747 -t 2 -u $XMRIG_USER" Enter tmux split-window -t $session -v -l 80% tmux send-keys -t $session "$DARKFID -c darkfid4.toml $verbose" Enter tmux attach -t $session diff --git a/contrib/localnet/darkfid-single-node/darkfid.toml b/contrib/localnet/darkfid-single-node/darkfid.toml index baeba4513..d60faa77c 100644 --- a/contrib/localnet/darkfid-single-node/darkfid.toml +++ b/contrib/localnet/darkfid-single-node/darkfid.toml @@ -41,12 +41,20 @@ skip_fees = false rpc_listen = "tcp://127.0.0.1:48345" # Disabled RPC methods -#rpc_disabled_methods = ["p2p.get_info"] +#rpc_disabled_methods = [] + +## Localnet management JSON-RPC settings +[network_config."localnet".management_rpc] +# JSON-RPC listen URL +rpc_listen = "tcp://127.0.0.1:48346" + +# Disabled RPC methods +#rpc_disabled_methods = [] ## Localnet JSON-RPC settings for stratum mining requests (optional) [network_config."localnet".stratum_rpc] # JSON-RPC listen URL (stratum mining) -rpc_listen = "tcp://127.0.0.1:48346" +rpc_listen = "tcp://127.0.0.1:48347" # Disabled RPC methods (stratum mining) #rpc_disabled_methods = [] @@ -54,7 +62,7 @@ rpc_listen = "tcp://127.0.0.1:48346" ## Localnet JSON-RPC settings for p2pool merge mining requests (optional) #[network_config."localnet".mm_rpc] # JSON-RPC listen URL (merge mining) -#rpc_listen = "http+tcp://127.0.0.1:48241" +#rpc_listen = "http+tcp://127.0.0.1:48348" # Disabled RPC methods (merge mining) #rpc_disabled_methods = [] diff --git a/contrib/localnet/darkfid-single-node/tmux_sessions.sh b/contrib/localnet/darkfid-single-node/tmux_sessions.sh index 7794cd325..a36cba2f8 100755 --- a/contrib/localnet/darkfid-single-node/tmux_sessions.sh +++ b/contrib/localnet/darkfid-single-node/tmux_sessions.sh @@ -5,7 +5,7 @@ set -e # xmrig configuration XMRIG_BINARY_PATH="xmrig" -XMRIG_STRATUM_ENDPOINT="127.0.0.1:48346" +XMRIG_STRATUM_ENDPOINT="127.0.0.1:48347" XMRIG_THREADS="4" XMRIG_USER="DZnsGMCvZU5CEzvpuExnxbvz6SEhE2rn89sMcuHsppFE6TjL4SBTrKkf" XMRIG_PARAMS="-u x+1 -r 1000 -R 20 -o $XMRIG_STRATUM_ENDPOINT -t $XMRIG_THREADS -u $XMRIG_USER" diff --git a/contrib/localnet/darkfid-small/darkfid0.toml b/contrib/localnet/darkfid-small/darkfid0.toml index 74fa5a337..1d7778c89 100644 --- a/contrib/localnet/darkfid-small/darkfid0.toml +++ b/contrib/localnet/darkfid-small/darkfid0.toml @@ -41,12 +41,20 @@ skip_fees = false rpc_listen = "tcp://127.0.0.1:48345" # Disabled RPC methods -#rpc_disabled_methods = ["p2p.get_info"] +#rpc_disabled_methods = [] + +## Localnet management JSON-RPC settings +[network_config."localnet".management_rpc] +# JSON-RPC listen URL +rpc_listen = "tcp://127.0.0.1:48346" + +# Disabled RPC methods +#rpc_disabled_methods = [] ## Localnet JSON-RPC settings for stratum mining requests (optional) [network_config."localnet".stratum_rpc] # JSON-RPC listen URL (stratum mining) -rpc_listen = "tcp://127.0.0.1:48346" +rpc_listen = "tcp://127.0.0.1:48347" ## Localnet P2P network settings [network_config."localnet".net] diff --git a/contrib/localnet/darkfid-small/darkfid1.toml b/contrib/localnet/darkfid-small/darkfid1.toml index 58b1a381c..5c3c52f02 100644 --- a/contrib/localnet/darkfid-small/darkfid1.toml +++ b/contrib/localnet/darkfid-small/darkfid1.toml @@ -49,12 +49,20 @@ skip_fees = false rpc_listen = "tcp://127.0.0.1:48445" # Disabled RPC methods -#rpc_disabled_methods = ["p2p.get_info"] +#rpc_disabled_methods = [] + +## Localnet management JSON-RPC settings +[network_config."localnet".management_rpc] +# JSON-RPC listen URL +rpc_listen = "tcp://127.0.0.1:48446" + +# Disabled RPC methods +#rpc_disabled_methods = [] ## Localnet JSON-RPC settings for stratum mining requests (optional) [network_config."localnet".stratum_rpc] # JSON-RPC listen URL (stratum mining) -rpc_listen = "tcp://127.0.0.1:48446" +rpc_listen = "tcp://127.0.0.1:48447" ## Localnet P2P network settings [network_config."localnet".net] diff --git a/contrib/localnet/darkfid-small/darkfid2.toml b/contrib/localnet/darkfid-small/darkfid2.toml index 9af9da77f..5fb919976 100644 --- a/contrib/localnet/darkfid-small/darkfid2.toml +++ b/contrib/localnet/darkfid-small/darkfid2.toml @@ -41,7 +41,15 @@ skip_fees = false rpc_listen = "tcp://127.0.0.1:48545" # Disabled RPC methods -#rpc_disabled_methods = ["p2p.get_info"] +#rpc_disabled_methods = [] + +## Localnet management JSON-RPC settings +[network_config."localnet".management_rpc] +# JSON-RPC listen URL +rpc_listen = "tcp://127.0.0.1:48546" + +# Disabled RPC methods +#rpc_disabled_methods = [] ## Localnet P2P network settings [network_config."localnet".net] diff --git a/contrib/localnet/darkfid-small/tmux_sessions.sh b/contrib/localnet/darkfid-small/tmux_sessions.sh index 8836752d3..8eed35bcd 100755 --- a/contrib/localnet/darkfid-small/tmux_sessions.sh +++ b/contrib/localnet/darkfid-small/tmux_sessions.sh @@ -21,11 +21,11 @@ else fi tmux new-session -d -s $session -n "node0" -tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48346 -t 2 -u $XMRIG_USER" Enter +tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48347 -t 2 -u $XMRIG_USER" Enter tmux split-window -t $session -v -l 80% tmux send-keys -t $session "$DARKFID -c darkfid0.toml $verbose" Enter tmux new-window -t $session -n "node1" -tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48446 -t 2 -u $XMRIG_USER" Enter +tmux send-keys -t $session "$XMRIG -u x+1 -r 1000 -R 20 -o 127.0.0.1:48447 -t 2 -u $XMRIG_USER" Enter tmux split-window -t $session -v -l 80% tmux send-keys -t $session "$DARKFID -c darkfid1.toml $verbose" Enter tmux new-window -t $session -n "node2"