Info on the `bitcoin.conf` file

9 replies 365 views
chain777Member
Posts: 16 · Reputation: 148
#1Dec 7, 2019, 04:13 PM
Anyone know where to find the official details on what goes in the `bitcoin.conf` file and what each option means? From what I’ve seen, almost every argument from the `bitcoin-cli` command can be used in there. But now I’m wondering where I can find a list of those `bitcoin-cli` arguments. I checked the official docs and couldn’t find anything. The only place I found info was on the website, but it’s kinda unclear if that’s up-to-date.
6 Reply Quote Share
ryan_nodeSenior Member
Posts: 202 · Reputation: 852
#2Dec 7, 2019, 04:28 PM
Pretty much any argument of bitcoind (not bitcoin-cli) can be specified in the bitcoin.conf. You can get the full list by doing bitcoind -help -help-debug
6 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#3Dec 7, 2019, 07:25 PM
Since the first question is answered, I'll skip it: If you actually mean args, those are in: bitcoin-cli --help If you mean RPC commands like in your links, use: bitcoin-cli help instead (requires a running daemon) Then use bitcoin-cli help <command> to get its documentation and examples. Those documents are open source, so you can immediately check its last edit timestamp by clicking "Edit Page" under Contribute. e.g. your link's last commit currently shows "4 years ago": github.com/bitcoin-dot-org/developer.bitcoin.org/blob/master/reference/rpc/index.rst For the latest RPC command list (specific to Bitcoin Core versions), use this list: bitcoincore.org/en/doc/
1 Reply Quote Share
DarkSeedSenior Member
Posts: 209 · Reputation: 1423
#4Dec 7, 2019, 11:22 PM
Does anyone know if you can use tags like [test] to separate configs that are only applied to testnet or [main] to mainnet? I've seen some people do this.
3 Reply Quote Share
ryan_nodeSenior Member
Posts: 202 · Reputation: 852
#5Dec 8, 2019, 02:34 AM
Yes
4 Reply Quote Share
DarkSeedSenior Member
Posts: 209 · Reputation: 1423
#6Dec 8, 2019, 07:44 AM
So to understand the formatting, everything needs to be packed right next below the tag or can you sort it out with comments, gaps etc? example I mean what im saying is, everything under [main] until the next tag [test] is applied in main, and anything under [test] is applied in testnet3, even if there are these gaps or #.
1 Reply Quote Share
ryan_nodeSenior Member
Posts: 202 · Reputation: 852
#7Dec 8, 2019, 08:52 AM
Yes. Whitespace and comments are ignored entirely and have no meaning when parsed. Options that you want to apply to all networks need to come before the first network section header. Anything after a header will apply to that network only, until the next network section header. The allowed names for network sections are the same as those for the -chain option.
4 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#8Dec 8, 2019, 07:56 PM
Looks like takuma sato needed a second opinion on my suggestion in his other thread to use tags on his bitcoin.conf file to separate the options :P For additional confirmations, there should be a sample bitcoin.conf file in your Knots install directory or inside its /share/examples/ folder. Scroll-down to its footer and you'll find some information about "sections" and the available network tags.
4 Reply Quote Share
DarkSeedSenior Member
Posts: 209 · Reputation: 1423
#9Dec 9, 2019, 02:10 AM
Yeah, it was hidden right at the end of the bitcoin.conf sample file. Btw, do you know why my tor node is not findable on bitnodes.io only when on testnet3 mode? I don't get it, it works fine with the main blockchain, but it's not reachable when on testnet3. I don't have anything on the [test] section other than the 2 bind options which are just the same as on the main anyway.
3 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#10Dec 9, 2019, 07:41 AM
We're getting off-topic here but if your testnet3 node has any inbound connections, there's no issue with its setup and it's just Bitnodes can't connect to it. And are you using Bitnodes in testnet3 version? Because AFAIK the live version is only for mainnet, unless you're using your own instance or a testnet3 link that I'm not aware of.
2 Reply Quote Share
?Reply
Sign in to reply to this topic

Related topics