darkfid: split managemtn rpc methods into its own rpc server and standarized all ports

This commit is contained in:
skoupidi
2026-01-02 19:41:20 +02:00
parent 4f30aae91d
commit fcf4aded0e
37 changed files with 359 additions and 215 deletions

View File

@@ -38,7 +38,7 @@ skip_fees = false
## Localnet JSON-RPC settings
[network_config."localnet".rpc]
# JSON-RPC listen URL
rpc_listen = "tcp://127.0.0.1:48240"
rpc_listen = "tcp://127.0.0.1:48345"
# Disabled RPC methods
#rpc_disabled_methods = ["p2p.get_info"]
@@ -46,7 +46,7 @@ rpc_listen = "tcp://127.0.0.1:48240"
## 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:48241"
rpc_listen = "tcp://127.0.0.1:48346"
## Localnet P2P network settings
[network_config."localnet".net]
@@ -58,4 +58,4 @@ active_profiles = ["tcp+tls"]
[network_config."localnet".net.profiles."tcp+tls"]
# P2P accept addresses the instance listens on for inbound connections
inbound = ["tcp+tls://0.0.0.0:48242"]
inbound = ["tcp+tls://0.0.0.0:48340"]

View File

@@ -38,7 +38,7 @@ skip_fees = false
## Localnet JSON-RPC settings
[network_config."localnet".rpc]
# JSON-RPC listen URL
rpc_listen = "tcp://127.0.0.1:48340"
rpc_listen = "tcp://127.0.0.1:48445"
# Disabled RPC methods
#rpc_disabled_methods = ["p2p.get_info"]
@@ -46,7 +46,7 @@ rpc_listen = "tcp://127.0.0.1:48340"
## 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:48341"
rpc_listen = "tcp://127.0.0.1:48446"
## Localnet P2P network settings
[network_config."localnet".net]
@@ -58,7 +58,7 @@ active_profiles = ["tcp+tls"]
[network_config."localnet".net.profiles."tcp+tls"]
# P2P accept addresses the instance listens on for inbound connections
inbound = ["tcp+tls://0.0.0.0:48342"]
inbound = ["tcp+tls://0.0.0.0:48440"]
# Peer nodes to manually connect to
peers = ["tcp+tls://0.0.0.0:48242"]
peers = ["tcp+tls://0.0.0.0:48340"]

View File

@@ -38,7 +38,7 @@ skip_fees = false
## Localnet JSON-RPC settings
[network_config."localnet".rpc]
# JSON-RPC listen URL
rpc_listen = "tcp://127.0.0.1:48440"
rpc_listen = "tcp://127.0.0.1:48545"
# Disabled RPC methods
#rpc_disabled_methods = ["p2p.get_info"]
@@ -46,7 +46,7 @@ rpc_listen = "tcp://127.0.0.1:48440"
## 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:48441"
rpc_listen = "tcp://127.0.0.1:48546"
## Localnet P2P network settings
[network_config."localnet".net]
@@ -58,7 +58,7 @@ active_profiles = ["tcp+tls"]
[network_config."localnet".net.profiles."tcp+tls"]
# P2P accept addresses the instance listens on for inbound connections
inbound = ["tcp+tls://0.0.0.0:48442"]
inbound = ["tcp+tls://0.0.0.0:48540"]
# Peer nodes to manually connect to
peers = ["tcp+tls://0.0.0.0:48242", "tcp+tls://0.0.0.0:48342"]
peers = ["tcp+tls://0.0.0.0:48340", "tcp+tls://0.0.0.0:48440"]

View File

@@ -38,7 +38,7 @@ skip_fees = false
## Localnet JSON-RPC settings
[network_config."localnet".rpc]
# JSON-RPC listen URL
rpc_listen = "tcp://127.0.0.1:48540"
rpc_listen = "tcp://127.0.0.1:48645"
# Disabled RPC methods
#rpc_disabled_methods = ["p2p.get_info"]
@@ -46,7 +46,7 @@ rpc_listen = "tcp://127.0.0.1:48540"
## 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:48541"
rpc_listen = "tcp://127.0.0.1:48646"
## Localnet P2P network settings
[network_config."localnet".net]
@@ -58,7 +58,7 @@ active_profiles = ["tcp+tls"]
[network_config."localnet".net.profiles."tcp+tls"]
# P2P accept addresses the instance listens on for inbound connections
inbound = ["tcp+tls://0.0.0.0:48542"]
inbound = ["tcp+tls://0.0.0.0:48640"]
# Peer nodes to manually connect to
peers = ["tcp+tls://0.0.0.0:48242", "tcp+tls://0.0.0.0:48342", "tcp+tls://0.0.0.0:48442"]
peers = ["tcp+tls://0.0.0.0:48340", "tcp+tls://0.0.0.0:48440", "tcp+tls://0.0.0.0:48540"]

View File

@@ -38,7 +38,7 @@ skip_fees = false
## Localnet JSON-RPC settings
[network_config."localnet".rpc]
# JSON-RPC listen URL
rpc_listen = "tcp://127.0.0.1:48640"
rpc_listen = "tcp://127.0.0.1:48745"
# Disabled RPC methods
#rpc_disabled_methods = ["p2p.get_info"]
@@ -46,7 +46,7 @@ rpc_listen = "tcp://127.0.0.1:48640"
## 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:48641"
rpc_listen = "tcp://127.0.0.1:48746"
## Localnet P2P network settings
[network_config."localnet".net]
@@ -58,7 +58,7 @@ active_profiles = ["tcp+tls"]
[network_config."localnet".net.profiles."tcp+tls"]
# P2P accept addresses the instance listens on for inbound connections
inbound = ["tcp+tls://0.0.0.0:48642"]
inbound = ["tcp+tls://0.0.0.0:48740"]
# Peer nodes to manually connect to
peers = ["tcp+tls://0.0.0.0:48242", "tcp+tls://0.0.0.0:48342", "tcp+tls://0.0.0.0:48442", "tcp+tls://0.0.0.0:48542"]
peers = ["tcp+tls://0.0.0.0:48340", "tcp+tls://0.0.0.0:48440", "tcp+tls://0.0.0.0:48540", "tcp+tls://0.0.0.0:48640"]

View File

@@ -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:48241 -t 2 -u $XMRIG_USER" Enter
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 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:48341 -t 2 -u $XMRIG_USER" Enter
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 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:48441 -t 2 -u $XMRIG_USER" Enter
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 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:48541 -t 2 -u $XMRIG_USER" Enter
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 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:48641 -t 2 -u $XMRIG_USER" Enter
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 split-window -t $session -v -l 80%
tmux send-keys -t $session "$DARKFID -c darkfid4.toml $verbose" Enter
tmux attach -t $session

View File

@@ -38,7 +38,7 @@ skip_fees = false
## Localnet JSON-RPC settings
[network_config."localnet".rpc]
# JSON-RPC listen URL
rpc_listen = "tcp://127.0.0.1:48240"
rpc_listen = "tcp://127.0.0.1:48345"
# Disabled RPC methods
#rpc_disabled_methods = ["p2p.get_info"]
@@ -46,7 +46,7 @@ rpc_listen = "tcp://127.0.0.1:48240"
## 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:48241"
rpc_listen = "tcp://127.0.0.1:48346"
# Disabled RPC methods (stratum mining)
#rpc_disabled_methods = []
@@ -69,4 +69,4 @@ active_profiles = ["tcp+tls"]
[network_config."localnet".net.profiles."tcp+tls"]
# P2P accept addresses the instance listens on for inbound connections
inbound = ["tcp+tls://0.0.0.0:48242"]
inbound = ["tcp+tls://0.0.0.0:48340"]

View File

@@ -21,7 +21,7 @@ wallet_path = "drk/wallet.db"
wallet_pass = "testing"
# darkfid JSON-RPC endpoint
endpoint = "tcp://127.0.0.1:48240"
endpoint = "tcp://127.0.0.1:48345"
# Path to interactive shell history file
history_path = "drk/history.txt"

View File

@@ -5,7 +5,7 @@ set -e
# xmrig configuration
XMRIG_BINARY_PATH="xmrig"
XMRIG_STRATUM_ENDPOINT="127.0.0.1:48241"
XMRIG_STRATUM_ENDPOINT="127.0.0.1:48346"
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"

View File

@@ -38,7 +38,7 @@ skip_fees = false
## Localnet JSON-RPC settings
[network_config."localnet".rpc]
# JSON-RPC listen URL
rpc_listen = "tcp://127.0.0.1:48240"
rpc_listen = "tcp://127.0.0.1:48345"
# Disabled RPC methods
#rpc_disabled_methods = ["p2p.get_info"]
@@ -46,7 +46,7 @@ rpc_listen = "tcp://127.0.0.1:48240"
## 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:48241"
rpc_listen = "tcp://127.0.0.1:48346"
## Localnet P2P network settings
[network_config."localnet".net]
@@ -58,4 +58,4 @@ active_profiles = ["tcp+tls"]
[network_config."localnet".net.profiles."tcp+tls"]
# P2P accept addresses the instance listens on for inbound connections
inbound = ["tcp+tls://0.0.0.0:48242"]
inbound = ["tcp+tls://0.0.0.0:48340"]

View File

@@ -46,7 +46,7 @@ skip_fees = false
## Localnet JSON-RPC settings
[network_config."localnet".rpc]
# JSON-RPC listen URL
rpc_listen = "tcp://127.0.0.1:48340"
rpc_listen = "tcp://127.0.0.1:48445"
# Disabled RPC methods
#rpc_disabled_methods = ["p2p.get_info"]
@@ -54,7 +54,7 @@ rpc_listen = "tcp://127.0.0.1:48340"
## 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:48341"
rpc_listen = "tcp://127.0.0.1:48446"
## Localnet P2P network settings
[network_config."localnet".net]
@@ -66,7 +66,7 @@ active_profiles = ["tcp+tls"]
[network_config."localnet".net.profiles."tcp+tls"]
# P2P accept addresses the instance listens on for inbound connections
inbound = ["tcp+tls://0.0.0.0:48342"]
inbound = ["tcp+tls://0.0.0.0:48440"]
# Peer nodes to manually connect to
peers = ["tcp+tls://0.0.0.0:48242"]
peers = ["tcp+tls://0.0.0.0:48340"]

View File

@@ -38,7 +38,7 @@ skip_fees = false
# Localnet JSON-RPC settings
[network_config."localnet".rpc]
# JSON-RPC listen URL
rpc_listen = "tcp://127.0.0.1:48440"
rpc_listen = "tcp://127.0.0.1:48545"
# Disabled RPC methods
#rpc_disabled_methods = ["p2p.get_info"]
@@ -53,7 +53,7 @@ active_profiles = ["tcp+tls"]
[network_config."localnet".net.profiles."tcp+tls"]
# P2P accept addresses the instance listens on for inbound connections
inbound = ["tcp+tls://0.0.0.0:48442"]
inbound = ["tcp+tls://0.0.0.0:48540"]
# Peer nodes to manually connect to
peers = ["tcp+tls://0.0.0.0:48242", "tcp+tls://0.0.0.0:48342"]
peers = ["tcp+tls://0.0.0.0:48340", "tcp+tls://0.0.0.0:48440"]

View File

@@ -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:48241 -t 2 -u $XMRIG_USER" Enter
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 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:48341 -t 2 -u $XMRIG_USER" Enter
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 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"