Bitcoin Core LevelDB Index saves forked blocks

Bitcoin Core LevelDB Index saves forked blocks

I've noticed that bitcoind will permanently save unverified blocks that it receives even if they turn out to be small blockchain forks, likely occurring from the relatively simultaneous discovery of two blocks of equal height. This doesn't cause a problem for Bitcoin Core's functionality, as there is surely a process written into the source that ignores such small forks, however, it's curious to me that the data persists in the data saved to the .dat and .ldb files in .bitcoin/blocks/ and .bitcoin/blocks/index nonetheless. Is there a way to prune these invalid blocks that belong to small forks in the blockchain without -reindexing the entire blockchain? Would -reindex even remove them?

http://ift.tt/2FbzznF

Comments

Popular posts from this blog

What exactly is a block?

Firmware With Unlocked Overclock for Bitmain Antminer Z9 Equihash ASIC Miners

How to use this nodejs script (by:Raghav Sood) that have been posted on the stackexchange