Hot answers tagged

52 votes
Accepted

When should I use -reindex-chainstate and when -reindex

-reindex: wipes the chainstate (the UTXO set) wipes the block index (the database with information about which block is where on disk) rebuilds the block index (by going over all blk*.dat files, and ...
user avatar
11 votes
Accepted

Bitcoin Core - Go back to a specific block?

You can't delete the block data themselves, but you can reset the blockchain state to a specific block by using the invalidateblock command. This command will mark a specific block and its descendants ...
user avatar
  • 60.4k
10 votes

Bitcoind, change to txindex=1

I would like to know, if using txindex = 1, will solve my problem with transactions that are not found. Yes, getrawtransaction only works for transactions with unspent outputs, unless txindex is ...
user avatar
9 votes
Accepted

How much extra disk space does txindex=1 require?

The total extra size is around 27GB as of June 2020. You can check by looking at the size of the $DATADIR/blocks/index directory. If you copy that directory, you'll copy the index with it. Historic ...
user avatar
7 votes
Accepted

Can bitcoin core verify a third party blockchain download?

If you give Bitcoin Core a fully populated data directory, it will use it without any validation. However, if you only give it the blocks/ subdirectory, it will fully validate it to recreate the ...
user avatar
4 votes
Accepted

Which blk*.dat file contains a particular block?

Is there a way to find out which blk*.dat file contains a particular block? We can't tell you which of your *.dat files contains block 478558 because there is no requirement that different nodes ...
user avatar
4 votes
Accepted

Can I use blockfilterindex in pruned mode?

The block filter index is build asynchronously from block downloading and validation. It is possible that the thread handing block storage and pruning could be enough ahead of the thread building the ...
user avatar
  • 60.4k
3 votes
Accepted

does Bitcoin Core automatically use reindex when you specify txindex=1 with existing sync'd chain?

Changing the txindex setting no longer requires a reindex since version 0.17.0 (see https://bitcoincore.org/en/releases/0.17.0/, under "Transaction index changes). It'll update just the txindex ...
user avatar
3 votes
Accepted

Is txindex=1 necessary in the latest versions?

getrawtransaction's behaviour has not changed since Bitcoin Core 0.8 (up until at least 0.14). It will always work: For mempool (unconfirmed) transactions For confirmed transactions that have ...
user avatar
3 votes

Bitcoind --reindex vs starting allover again

bitcoind --reindex will be faster because starting over from scratch would not only do all the work bitcoind --reindex is doing, but it'd also have to go out and re-download all those blocks too.
user avatar
3 votes
Accepted

If I am on a fork, can the reindex parameter fix this?

No, it would not. --reindex only handles the data that is stored on disk. Blocks are stored in the order that they are received, which is what brought you to your current view of the blockchain. So ...
user avatar
  • 60.4k
3 votes

Does bitcoind ERROR "Disk space is too low!" refer to RAM or actual harddrive?

It refers to actual disk space. RAM is memory, not storage. The term "disk space" is very specific. Then a while later this: [2020-01-20T09:05:59Z Reindexing finished] But bitcoind continued ...
user avatar
  • 60.4k
2 votes
Accepted

Fixing "Block not found on disk" rpc error

Blocks are not stored in individual files, but flat bundles of a fixed size, so replacing one that is missing isn’t really possible. If a block can not be found on disk it has either keen deleted ...
user avatar
  • 15k
2 votes
Accepted

Issue with getrawtransaction txindex and reindex

txindex=1 has to be added in the bitcoin.conf file. When starting the node, the following command should be issued bitcoind -reindex=1 -daemon You can keep checking the debug.log file in the ....
user avatar
2 votes
Accepted

Does bitcoind re-index or reverify downloaded blocks upon startup?

It walks back a small number of blocks and re-verifies them, this ensures there's no obvious corruption and warms the cache. It takes a few tens of seconds at maximum on most hardware. You can adjust ...
user avatar
  • 15k
2 votes
Accepted

Shutdown bitcoin-qt during reindexing?

Can I safely shutdown and restart? Yes. If yes how? Do I have to pass --reindex again or will bitcoin-qt remember and continue from where it stopped? No, Bitcoin Core will remember that it was ...
user avatar
  • 60.4k
2 votes

Re-index/Re-download from specific height?

A reindex will not redownload the block. However, after safely shutting down Bitcoin Core, you can delete the block file containing that block. When you start it again, you will need to reindex, but ...
user avatar
  • 60.4k
1 vote

How can I -abort ./bitcoind -reindex-chainstate?

-reindex-chainstate is an instant operation: it wipes a the chainstate (UTXO) database. It is performed at startup whenever the -reindex-chainstate command-line option, or the reindex-chainstate=1 ...
user avatar
1 vote
Accepted

Why is the rate of reindexing chainstate not constant?

Updates to the UTXO are write cached, you will see pauses when this is flushed to disk periodically.
user avatar
  • 15k
1 vote

`reindex-chainstate` configuration in bitcoin.conf?

Yes. All command line options can be specified in the bitcoin.conf file using the same name without the leading dash (-). For -reindex-chainstate, you add reindex-chainstate=1 to your bitcoin.conf.
user avatar
  • 60.4k
1 vote

Bitcoin Core 'unable to open file' causes reindexing to fail

An exhaustive survey of Google searches relating to the failure to read blknnnn.dat files implicated data corruption on the hard drive or in files such as wallet.dat and/or blknnnn.dat. In my case, ...
user avatar
1 vote

Txindex=1: how to recognise the blockchain with this option?

You can check the debug logs (might require -debug flag) and see if it is indexing transactions: $ tail -f ~/.bitcoin/debug.log You can also try to get a transaction by txid, and if it returns ...
user avatar
  • 7,040
1 vote

How long to -reindex -dbcache=2048 with txindex = 1?

I can make new address and send bitcoin in proccess of reindex? Yes, but your wallet won't be able to check whether it has been confirmed by the network (i.e. mined) until it is caught up and synced ...
user avatar
1 vote

How much extra disk space does txindex=1 require?

I just reindexed after setting txindex=1. My data directory increased in size about 3GB, but it seems like it might be saving data in another location since moving the data directory to other nodes is ...
user avatar
  • 141

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