46 votes
Accepted

What are pros and cons of txindex option?

If you're using Bitcoin Core just for your own personal use, you probably don't need the -txindex=1 option. But, if you're using Bitcoin core for development or blockchain analysis of some sort, you ...
user avatar
  • 13.7k
16 votes

What are pros and cons of txindex option?

By default -txindex=0 Bitcoin Core doesn't maintain any transaction-level data except for those in the mempool or relay set pertinent to addresses in your wallet pertinent to your "watch-only" ...
user avatar
9 votes
Accepted

rpcallowip=192.168.0.* ?? invalid configuration

You want to use 192.168.0.0/24. That's CIDR notation for 192.168.0.*.
user avatar
  • 206
9 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 ...
user avatar
7 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 ...
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) { ...
user avatar
5 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
user avatar
4 votes
Accepted

Bitcoin.conf & JSON-RPC options

The JSON-RPC API can be used by other programs to communicate with the Bitcoin client. That could include external mining programs, "e-commerce" software to automatically make and receive payments, ...
user avatar
4 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 ...
user avatar
  • 41
4 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 ...
user avatar
4 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 ...
user avatar
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://...
user avatar
  • 28.6k
3 votes
Accepted

About traditional Bitcoin mining

The official Bitcoin full node software always had the mining feature built in, and will probably always have. If you have the line gen=1 in your .conf file, then you will start confirming ...
user avatar
  • 5,114
3 votes
Accepted

bitcoin allowip not working

That format has been removed. Use rpcallowip=192.168.0.0/16 instead.
user avatar
  • 28.6k
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
user avatar
  • 222
3 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 ...
user avatar
  • 331
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 ...
user avatar
  • 7,429
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 ...
user avatar
  • 923
3 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=...
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 ...
user avatar
3 votes

What bitcoin core options can be changed without a restart?

Debugging print options can be changed without a restart.
user avatar
  • 15k
3 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 &...
user avatar
2 votes

Cannot get Bitcoin-QT to run in testnet mode

With a standard Bitcoin Core installation under Window 7, the data directory is located under: {User}\AppData\Roaming\Bitcoin The bitcoin.conf file containing the line "testnet=1" goes there. The ...
user avatar
  • 2,226
2 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="$...
user avatar
2 votes

Bitcoin.conf & JSON-RPC options

One reason you might use server=1 is when you're using a third-party mining program like cgminer. Example bitcoin.conf: server=1 rpcuser=SOMEUSER rpcpassword=SOMEPASSWORD Note: Don't set gen=1, ...
user avatar
2 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 ...
user avatar
  • 60.4k
2 votes
Accepted

Does bitcoind not support txindex=1 option in regtest mode?

If bitcoind stops, them you should have a look in your debug.log file. Enabling -txindex with an already initialised blockchain (not your first regtest start) requires a reindex. Either you start ...
user avatar
2 votes

Script to periodically update assumevalid block in bitcoin core configuration, good idea?

So sure enough Bitcoin Core seems to start faster after doing that. Is it a good idea? Or more specifically, what could go wrong? It must be the placebo effect that you are experiencing because ...
user avatar
  • 60.4k
2 votes

Setting keypool size in the conf file

keypoolsize only shows how many keys are currently in the keypool. It does not reflect the maximum size of the keypool. The keypool=<n> option does not automatically fill the keypool to that ...
user avatar
  • 60.4k

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