Author

Topic: Will "-rescan -reindex" find all bad ".blk" files (Read 864 times)

full member
Activity: 210
Merit: 104
“Create Your Decentralized Life”
Why do you think so?

Failed commit entry in NT system log.  But wallet.dat is fine.

So:
checkblocks=0 # re-checksum each block file
rescan            # rebuild wallet transaction database
rebuild            # reindex rebuilds the whole blockchain transaction database

Got it.

So if I 'tar' my datadir then when I untar it and copy over my wallet.dat, I'll -checkblocks=0 -rescan -rebuild
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF
I think one of my *.blk files might be corrupt. [...]

Why do you think so?


-rescan is for the wallet. It will look for your addresses and any balances with them.

-checkblocks=0 will check all your blocks, if that's what you want to do.

https://en.bitcoin.it/wiki/Running_bitcoind#Command-line_arguments
full member
Activity: 210
Merit: 104
“Create Your Decentralized Life”
I think one of my *.blk files might be corrupt.  If I "-rescan -reindex" will it find the bad block and re-acquire it from peers?

More technically, does -rescan verify the hash on each *.blk file?

Thx
Jump to: