What's new
  • Thank you for your input for the last few days regarding the list of exchanges you want to see DSTRA in.
    These are our targets for fundraising going forward. Learn more

dstra-qt: ConnectBlock(...): Assertion failed. Aborted. [Solution]

dragononcrypto

Junior Member
If, like me, you're qt client is crashing due to corrupt blockchain data with the following or similar error:

Code:
dstra-qt: main.cpp:2033: bool ConnectBlock(const CBlock&, CValidationState&, CBlockIndex*, CCoinsViewCache&, bool): Assertion `hashPrevBlock == view.GetBestBlock()' failed.
Aborted (core dumped)
Then run the client again with the -reindex option:

Code:
dstra-qt -reindex
It should then run a reindexing of blocks on the disk as such:

reindexing.jpg

Hope that helps someone.
 

twthmoses

Junior Member
Staff member
Have not seen this error before. But good info anyway, i'm sure it helps some. Another trick is just to delete a corrupt blockchain (blk00000.dat) and start again.
 

dragononcrypto

Junior Member
Have not seen this error before. But good info anyway, i'm sure it helps some. Another trick is just to delete a corrupt blockchain (blk00000.dat) and start again.
True story, however it's worth noting that the re-indexing is much faster (took a matter of minutes) as opposed to hours re-syncing the blockchain again.