Skip to content

Corrupted block database on 18.2-RC2 prevents index use #5096

Open
@thephez

Description

@thephez

Describe the issue

Dash Core v18.2 RC2 returns the following error in some scenario when certain indexes are enabled.

2022-12-07T16:40:56Z [0%]...[16%]...[25%]...[33%]...[41%]...[50%]...[ProcessBlock] h[795010] numCommitmentsRequired[0] numCommitmentsInNewBlock[0]
2022-12-07T16:40:56Z ERROR: ConnectBlock(DASH): ProcessSpecialTxsInBlock for block 00000086e9bf45802a44258e882865b176d2bcaf425d1c7d9b7acc59b859a5fe failed with bad-cbtx-mnmerkleroot (code 16)
2022-12-07T16:40:56Z ERROR: VerifyDB(): *** found unconnectable block at 795010, hash=00000086e9bf45802a44258e882865b176d2bcaf425d1c7d9b7acc59b859a5fe (bad-cbtx-mnmerkleroot (code 16))
2022-12-07T16:40:56Z : Corrupted block database detected.
Please restart with -reindex or -reindex-chainstate to recover.

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. Enable txindex=1 and addressindex=1 in dash.conf
  2. Run Dash Core v18.2 RC2 on testnet with the -reindex option. I was specifically running dash-qt -conf=<conf file> -reindex.
  3. Once reindexing has completed, close Dash Core normally.
  4. Reopen Dash Core (without the -reindex parameter)
  5. Observe the error reported above

Expected behaviour

Core should run successfully after the reindex

Actual behaviour

Core reports a corrupted block database and shuts down

What version of Dash Core are you using?

Dash Core version v18.2.0-rc.2. Published GitHub binary and self-compiled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions