Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Mar 20, 2019

This should have no effect on mainnet users, but simplifies testing, where config settings are currently ignored with only a warning. Fix this by making it an error.

Issues:

@promag
Copy link
Contributor

promag commented Mar 21, 2019

Tested ACK dddd6f0.

$ cat bitcoin.conf
rpcport=54321

bitcoind -testnet
2019-03-21T14:58:35Z Bitcoin Core version v0.18.99.0-dddd6f0f5 (release build)
2019-03-21T14:58:35Z Error: Config setting for -rpcport only applied on test network when in [test] section.
Error: Config setting for -rpcport only applied on test network when in [test] section.

Deserves a small release note, just to point to if someone reports this behavior change?

@practicalswift
Copy link
Contributor

Concept ACK

Nice usability improvement!

@promag
Copy link
Contributor

promag commented Mar 21, 2019

@MarcoFalke here's a test for your consideration 53469f7.

@maflcko maflcko force-pushed the 1903-InitErrorConf branch from faed503 to fad6ec6 Compare March 21, 2019 19:47
@maflcko maflcko force-pushed the 1903-InitErrorConf branch from fad6ec6 to fa9058f Compare March 21, 2019 19:55
@DrahtBot
Copy link
Contributor

DrahtBot commented Apr 6, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

No conflicts as of last run.

maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Apr 10, 2019
…s ignored

fae38c3 doc: Fix all typos reported by codespell (MarcoFalke)
fa9058f doc: Add release notes for 15629 (MarcoFalke)
fa4a922 qa: Add test for missing testnet section in conf file (MarcoFalke)
dddd6f0 init: Throw error when network specific config is ignored (MarcoFalke)

Pull request description:

  This should have no effect on mainnet users, but simplifies testing, where config settings are currently ignored with only a warning. Fix this by making it an error.

  Issues:
  *  bitcoin client 0.17.0 ignores wallet's name (file) bitcoin#14523
  *  Can't set custom rpcport on testnet bitcoin#13777
  * ...

ACKs for commit fae38c:

Tree-SHA512: 2e209526898eea6e444c803ec2666989cee4ca137492d32984998733c50a70056cb54657df8dc3027a6a0612738a8afce0bc35824b868c5f22281e00e0188530
@maflcko maflcko merged commit fae38c3 into bitcoin:master Apr 10, 2019
@maflcko maflcko deleted the 1903-InitErrorConf branch April 10, 2019 01:18
@promag
Copy link
Contributor

promag commented Apr 10, 2019

utACK fae38c3.

pravblockc pushed a commit to pravblockc/dash that referenced this pull request Nov 18, 2021
ftrader pushed a commit to bitcoin-cash-node/bitcoin-cash-node that referenced this pull request Nov 21, 2021
Summary
---

This is a backport of bitcoin/bitcoin@dddd6f0
See bitcoin/bitcoin#15629

Test plan
---

* `ninja all check-all`
ftrader pushed a commit to bitcoin-cash-node/bitcoin-cash-node that referenced this pull request Nov 21, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants