Can't specify rpcport for testnet

2

Was there a recent change where it is no longer possible to specify rpcport?

I noticed these two warnings: Warning: Config setting for -addnode only applied on test network when in [test] section. Warning: Config setting for -rpcport only applied on test network when in [test] section.

After trying adding a [test] section I got very mixed results as some times it disregarded all options and in general rpcport was still not set.

I could not find any documentation on how to do this.

Nikos Kostoulas

Posted 2018-07-26T08:40:57.107

Reputation: 111

What software are you running exactly?JBaczuk 2018-07-26T16:25:52.023

I am building the bitcoin daemon from source.Nikos Kostoulas 2018-07-27T08:13:37.677

1

Can you post your bitcoin.conf file? Also, please read https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes-pr12823.md

Andrew Chow 2018-07-30T16:58:04.400

Answers

2

For any of addnode, connect, port, bind, rpcport, rpcbind, and wallet you should move them into the [test] and/or [main] sections of your bitcoin.conf. You can also move any other setting that you want only applied to mainnet or testnet into the appropriate section.

Example:

server=1
daemon=1

[main]
prune=1000

[test]
rpcport=55555

Chris Moore

Posted 2018-07-26T08:40:57.107

Reputation: 13 952