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

@@ -21,7 +21,7 @@ $(DARKFID_JSONRPC):
@echo "# darkfid JSON-RPC API" > $@
@echo "## Methods" >> $@
@echo "<!-- toc -->" >> $@
for i in blockchain tx stratum xmr misc; do \
for i in blockchain tx stratum xmr misc management; do \
echo "## $$i methods" >> $@ ;\
./build_jsonrpc.py ../bin/darkfid/src/rpc/$$i.rs >> $@ ;\
done

View File

@@ -731,7 +731,7 @@ DarkFi DAO mining configuration address:
Then start an `xmrig` instance to mine for the DAO:
```shell
$ ./xmrig -u x+1 -r 1000 -R 20 -o 127.0.0.1:8341 -t {XMRIG_THREADS} -u {YOUR_DAO_WALLET_ADDRESS_MINING_CONFIGURATION}
$ ./xmrig -u x+1 -r 1000 -R 20 -o 127.0.0.1:18347 -t {XMRIG_THREADS} -u {YOUR_DAO_WALLET_ADDRESS_MINING_CONFIGURATION}
```
After your miners have successfully mined confirmed blocks, you will

View File

@@ -187,21 +187,16 @@ endpoint that will be used by `p2pool` in `darkfid` config:
```toml
[network_config."testnet".mm_rpc]
rpc_listen = "http+tcp://127.0.0.1:8341"
rpc_listen = "http+tcp://127.0.0.1:18348"
```
> Note:
>
> If you are also using a `Stratum` RPC endpoint make sure the two
> ports are different.
Then start `darkfid` as usual.
Stop `p2pool` if it's running, and re-run it with the merge-mining
parameters appended:
```shell
$ ./p2pool --host 127.0.0.1 --rpc-port 28081 --zmq-port 28083 --wallet {YOUR_MONERO_WALLET_ADDRESS_HERE} --stratum 127.0.0.1:3333 --data-dir ./p2pool-data --no-igd --merge-mine 127.0.0.1:8341 {YOUR_DARKFI_WALLET_ADDRESS}
$ ./p2pool --host 127.0.0.1 --rpc-port 28081 --zmq-port 28083 --wallet {YOUR_MONERO_WALLET_ADDRESS_HERE} --stratum 127.0.0.1:3333 --data-dir ./p2pool-data --no-igd --merge-mine 127.0.0.1:18348 {YOUR_DARKFI_WALLET_ADDRESS}
```
Now `p2pool` should communicate with both `monerod` and `darkfid` in
@@ -229,7 +224,7 @@ Stop `p2pool` if it's running, and re-run it with the merge-mining
parameters appended:
```shell
$ ./p2pool --host 127.0.0.1 --rpc-port 28081 --zmq-port 28083 --wallet {YOUR_DAO_MONERO_WALLET_ADDRESS_HERE} --stratum 127.0.0.1:3333 --data-dir ./p2pool-data --no-igd --merge-mine 127.0.0.1:8341 {YOUR_DAO_WALLET_ADDRESS_MINING_CONFIGURATION}
$ ./p2pool --host 127.0.0.1 --rpc-port 28081 --zmq-port 28083 --wallet {YOUR_DAO_MONERO_WALLET_ADDRESS_HERE} --stratum 127.0.0.1:3333 --data-dir ./p2pool-data --no-igd --merge-mine 127.0.0.1:18348 {YOUR_DAO_WALLET_ADDRESS_MINING_CONFIGURATION}
```
After your miners have successfully mined confirmed blocks, you will

View File

@@ -256,7 +256,7 @@ config:
```toml
[network_config."testnet".stratum_rpc]
rpc_listen = "tcp://127.0.0.1:8341"
rpc_listen = "tcp://127.0.0.1:18347"
```
> Note:
@@ -285,7 +285,7 @@ for maximum mining performance. Start `darkfid` as usual and then start
which wallet:
```shell
$ ./xmrig -u x+1 -r 1000 -R 20 -o 127.0.0.1:8341 -t {XMRIG_THREADS} -u {YOUR_DARKFI_WALLET_ADDRESS}
$ ./xmrig -u x+1 -r 1000 -R 20 -o 127.0.0.1:18347 -t {XMRIG_THREADS} -u {YOUR_DARKFI_WALLET_ADDRESS}
```
In `darkfid`, you should see a notification like this: