Skip to main content
Share Your Experience: Take the 2024 Developer Survey
10 votes
Accepted

How to specify number of threads for bitcoind?

More threads will not make your software run faster. Threads are used in order to be able to do more things concurrently, but not necessarily faster overall. Assume your internet connection allows ...
Pieter Wuille's user avatar
8 votes

How to tell bitcoind to use more memory and CPU

It will by default use all CPU cores available. However, if the database cache is too small, your node will spend its time fetching and writing database entries from/to disk, rather than verification ...
Pieter Wuille's user avatar
6 votes
Accepted

Is -blocknotify triggered during catch-up?

Yes, this is by design. The notify action is run in the function BlockNotifyCallback (init.cpp), and you can see: static void BlockNotifyCallback(bool initialSync, const CBlockIndex *pBlockIndex) { ...
Nate Eldredge's user avatar
6 votes

What are pros and cons of txindex option?

In addition, txindex=1 used to be required if you wanted to use LND (lightning network daemon). See https://github.com/lightningnetwork/lnd/pull/751
Offer Markovich's user avatar
6 votes
Accepted

How to configure a testnet node to be pruned?

The bitcoin.conf option must be prune=1000, not pruned=1000. If you specified the latter, it was probably ignored. You could reduce the number up to 550 (MiB), bitcoind won't start if you choose a ...
Lightlike's user avatar
  • 636
5 votes

Where is the configuration file of Bitcoin-Qt kept?

Note that for Windows the location of the configuration folder where bitcoin.conf is located is saved in the registry. Its default path is indeed C:\Users\<username>\AppData\Roaming\Bitcoin ...
Sampeet's user avatar
  • 51
5 votes
Accepted

Where is the configuration file?

The configuration file is definitely in $HOME/.bitcoin/. If you cannot see it, the most likely explanation is that you have not created it. Just use your favorite text editor to do so. As far as I can ...
Sven Williamson's user avatar
5 votes
Accepted

How to change RPC port for bitcoind? (rpcport=xxx in bitcoin.conf doesn't work)

Found the solution: rpcport needs to be in the [test] section Please update your original config file to read: testnet=1 server=1 daemon=1 txindex=1 rpcuser=XXXXXXXXXXXXXXXXXXXXXXX rpcpassword=...
Alistair Mann's user avatar
5 votes
Accepted

How to set up Lightning Network conf file. RPC user / password? and zmqpubraw?

So in Bitcoind you can define authentication via an rpc interface (remote procedure call). In the config file of Bitcoind which is usually located in ~/.bitcoin/bitcoin.conf you can set the values for ...
Rene Pickhardt's user avatar
5 votes

Can't reach remote bitcoin rpc server

Please keep in mind that exposing your node's RPC interface to the entire internet is considered to be unsafe. RPCs are not encrypted so anything that you send to your node will be in cleartext for ...
Ava Chow's user avatar
  • 70.8k
5 votes
Accepted

Where can I find actual official documentation for bitcoin.conf?

An example bitcoin.conf file for the current Bitcoin Core version (25.0 at time of writing) is here and a tool for helping you generate a config file is here.
Michael Folkson's user avatar
4 votes
Accepted

How do I set 'txindex = 1' in bitcoincore?

If you installed Bitcoin Core on linux, the config file is most likely found in ~/.bitcoin/bitcoin.conf Edit bitcoin.conf file and just add txindex=1 anywhere you like on a new line, just make sure ...
mango's user avatar
  • 351
4 votes

Can't reach remote bitcoin rpc server

If anyone got problem with reaching bitcoin-rpc server located on vps, the best way in my opinion would be port redirecting over shh. By this command: ssh [user]@[host] -p [port] -L 18332:127.0.0.1:...
ruhtren's user avatar
  • 61
4 votes
Accepted

What's the diffrence between these two bitcoin.conf format?

Answering the second part of your question: server=1 tells Bitcoin-Qt and bitcoind to accept JSON-RPC commands, so you can query it listen=1 is a bitcoin listening mode daemon=1 starts bitcoind in the ...
Tony Sanak's user avatar
  • 1,689
4 votes
Accepted

bitcoin.conf missing

I found the solution. It turns out that bitcoin.conf are not generated just by installing and running bitcoin core. Run bitcoin core and wait until it's fully open. Go to settings > option Click &...
user6668201's user avatar
4 votes
Accepted

Where can I find the parser for `bitcoin.conf` files?

So which of the following are valid: All of them, as the parser does trim whitespace before and after the string, and before and after both the name and value after splitting them. However, that ...
Ava Chow's user avatar
  • 70.8k
4 votes
Accepted

What's the difference between 'rpcallowip' and 'rpcbind'?

You could be running Bitcoin Core on your desktop and issuing RPC commands from your laptop. In this example you might want to put rpcbind=0.0.0.0 and rpcallowip=192.168.1.10 or your laptop’s lan IP. ...
Mike D's user avatar
  • 3,569
4 votes
Accepted

Bitcoin Core configured for testnet, syncs mainnet

You need to pass -testnet to both the bitcoind and bitcoin-cli calls, so they know to even look into the [testnet] section of the config file.
Pieter Wuille's user avatar
4 votes
Accepted

Specify options as startup flag or conf file in bitcoin core?

Yes, all options can be specified either in bitcoin.conf or as command-line parameters. If an option appears in both then command line takes precedence. Boolean command-line options set to true can ...
Vojtěch Strnad's user avatar
3 votes

What are pros and cons of txindex option?

In addition to the other answers, txindex=1 is required if you want to use your wallet with Counterparty. See the installation instructions at https://github.com/CounterpartyXCP/counterparty-lib
alexg's user avatar
  • 263
3 votes

Bitcoin.conf problem

walletnotify takes the supplied string and runs it as a command. If you want to make it request a URL, you should pass the URL to a command that can do that. On linux: walletnotify=curl 'http://...
Nick ODell's user avatar
  • 29.4k
3 votes
Accepted

Does bitcoin.conf expand environment variables?

No, bitcoin core does not expand environment variables in bitcoin.conf. See here to see how options are parsed. You can expand environment variables as arguments for bitcoind: $ bitcoind -rpcuser="$...
ohmyfromage's user avatar
3 votes

How to specify number of threads for bitcoind?

There's a difference between a software thread and a CPU thread. The number of threads that you are seeing is not the number of CPU threads that bitcoind is using. It is the number of software threads ...
Ava Chow's user avatar
  • 70.8k
3 votes

Please help - Bitcoin Conf file in the wrong directory

You can use the --datadir parameter to specify the exact location of your blockchain data, and --conf to specify the location of your configuration file. From the wiki: If you want to store the ...
Mason Ticehurst's user avatar
3 votes

addnode vs seednode

A node is a machine that is connected to other nodes on the Bitcoin network which sends and receives blocks and transactions with other nodes. A peer is a node which your node is connected to. Peer ...
Ava Chow's user avatar
  • 70.8k
3 votes

What is the optimal Bitcoin Core 0.17 settings in bitcoin.conf settings for running a full node with a very beefy system?

dbcache is the only significant performance influencing option. Performance may be improved somewhat by increasing receive and send buffer sizes. You don't specify exactly what application's you're ...
G. Maxwell's user avatar
  • 7,727
3 votes
Accepted

Where is bitcoin.conf and why doesn't bitcoind find existing datadir v0.17.1

The syntax should be bitcoind -datadir=/mnt/d/blockchain -txindex Note the = sign. This will look for the bitcoin.conf file at /mnt/d/blockchain/bitcoin.conf and will store the blockchain, ...
Nate Eldredge's user avatar
3 votes

Unable to bind any endpoint for RPC server

Here's how you fix the rpcbind issue with the latest change in version 0.18.0. Before 0.18, if you put rpcallowip=0.0.0.0/0, the value of rpcbind didn't need to be set as it defaulted to all ...
Chan-Ho Suh's user avatar
3 votes
Accepted

Should a user be notified about "last modified" time of bitcoin.conf while the bitcoin core wallet is loading?

No. If your machine is compromised you can't trust last modified timestamps. One of the obstacles to Bitcoin adoption is complexity. Developers should keep the user interface as simple and clear as ...
RedGrittyBrick's user avatar
3 votes

What bitcoin core options can be changed without a restart?

Debugging print options can be changed without a restart.
Claris's user avatar
  • 15.4k

Only top scored, non community-wiki answers of a minimum length are eligible