Open coolaj86 opened 1 year ago
dash-cli
help
$ dash-cli --help | grep rpcconnect -A1
-rpcconnect=<ip>
Send commands to node running on <ip> (default: 127.0.0.1)
try
dash-cli -rpcconnect=10.11.5.101:9998 getaddressbalance '{"addresses": ["Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]}'
dash.conf
[main]
rpcuser=alice
rpcpassword=youllgethacked
bind=10.11.5.101:9999
rpcbind=10.11.5.101:9998
rpcbind=127.0.0.1:9998 # <----- this
rpcallowip=10.11.5.101/24
zmqpubrawtx=tcp://10.11.5.101:28332
zmqpubrawtxlock=tcp://10.11.5.101:28332
I call that a bug still. Unless rpcconnect
is specified, it should respect the default value that's already set. Bonus: would be nice if the error message told the user about using rpcconnect
.
That would be good to have more clear in the docs:
Thanks.
Scenario
dash.conf
Yes, the server is running. Yes, it connects as expected when
rpcbind=127.0.0.1:9998
.Bugs
Two weird things here:
dash-cli
doesn't know how to use the correct address for rpcdashd
doesn't bind to localhost when binding somewhere else \ (I don't think I've had this problem with other network software)