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.
Info on the `bitcoin.conf` file
9 replies 365 views
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
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/
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.
Yes
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 #.
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.
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.
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.
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.
?Reply
Sign in to reply to this topic
Related topics
- Recovering a Bitcoin wallet and address 8
- Affordable quiet mini PC for running a Bitcoin node and blockchain explorer 19
- Using two different Bitcoin versions without messing up blockchain data 3
- Issue with Bitcoin Core Wallet after power outage 8
- Is it possible to check my bitcoin balance offline 12
- Transforming my wallet into an HD wallet bitcoin core 26 4