0
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.
1Does your
bitcoin.conffile contain a linetestnet=1? – Pieter Wuille – 2018-11-12T08:47:25.517yes, for testnet testnet=1 is on – huahuayu – 2018-11-14T14:13:16.183
So
bitcoin-cliis combining the options from the command line and the config file, and sees both which are in conflict with eachother. – Pieter Wuille – 2018-11-14T17:31:57.160