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 ...
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
...
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)
{
...
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
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 ...
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 ...
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 ...
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=...
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
...
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 ...
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 ...
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:...
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 &...
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 ...
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.
...
4
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.
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
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 ...
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 ...
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 ...
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://...
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="$...
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 ...
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, ...
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 ...
3
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 ...
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 ...
3
votes
What bitcoin core options can be changed without a restart?
Debugging print options can be changed without a restart.
3
votes
Does an empty bitcoin.conf file cause my Bitcoin-core wallet to have a balance of 0?
what is normally in bitcoin-conf
It is normal for it to be empty (0 bytes).
It only has contents if you deliberately change the configuration.
[I am] not seeing transactions on my wallet.dat type ...
3
votes
Accepted
Failed to start Bitcoin daemon
You've set incompatible options. bind=1 requires listen=1 but proxy=X.X.X.X overwrites listen to 0.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
bitcoin.conf × 111bitcoin-core × 49
bitcoind × 39
json-rpc × 17
mac × 10
full-node × 5
bitcoin-cli × 5
regtest × 5
solo-mining × 5
miner-configuration × 4
testnet × 4
ubuntu × 4
tor × 4
bitcoin-qt-setup × 4
blockchain × 3
transaction-fees × 3
network × 3
nodes × 3
windows × 3
pruning × 3
datadir × 3
address × 2
lightning-network × 2
synchronization × 2
linux × 2