I have bitcoin testnet3, mainnet, regtest both running in the same server, I can interactive with them by curl, because the ports are different, but when comes to bitcoin-cli how can I specific the network I want interactive with?
I get below error:
$ bitcoin-cli -regtest setgenerate true 101 # I want use regtest Error: Invalid combination of -regtest and -testnet.
bitcoin.conffile contain a line
bitcoin-cliis combining the options from the command line and the config file, and sees both which are in conflict with eachother.