dashpay / dash

Dash - Reinventing Cryptocurrency
https://www.dash.org
MIT License
1.49k stars 1.2k forks source link

[Question] reconsiderblock throws an error #5016

Closed message closed 2 years ago

message commented 2 years ago

Describe the issue

My Dash Core daemon is not syncing new blocks. On a restart I have a message in debug.log about invalid block reconsideration.

2022-09-17T13:01:02Z ResetBlockFailureFlags: the best known invalid block (000000000000001aa25181e4c466e593992c98f9eb21c69ee757b8bb0af50244) is ahead of our tip, reconsidering

But while reconsidering it fails with

2022-09-17T13:02:56Z ERROR: ConnectBlock(DASH): ProcessSpecialTxsInBlock for block 000000000000001aa25181e4c466e593992c98f9eb21c69ee757b8bb0af50244 failed with bad-qc-invalid (code 16)
2022-09-17T13:02:56Z InvalidChainFound: invalid block=000000000000001aa25181e4c466e593992c98f9eb21c69ee757b8bb0af50244  height=1738698  log2_work=78.91219724  date=2022-09-15T12:41:21Z
2022-09-17T13:02:56Z InvalidChainFound:  current best=00000000000000362d528545b40976af8a9b5380def57d63943a30a9379a5385  height=1738697  log2_work=78.91219653  date=2022-09-15T12:39:02Z
2022-09-17T13:02:56Z ERROR: ConnectTip: ConnectBlock 000000000000001aa25181e4c466e593992c98f9eb21c69ee757b8bb0af50244 failed, bad-qc-invalid (code 16)
2022-09-17T13:02:56Z InvalidChainFound: invalid block=000000000000001aa25181e4c466e593992c98f9eb21c69ee757b8bb0af50244  height=1738698  log2_work=78.91219724  date=2022-09-15T12:41:21Z
2022-09-17T13:02:56Z InvalidChainFound:  current best=00000000000000362d528545b40976af8a9b5380def57d63943a30a9379a5385  height=1738697  log2_work=78.91219653  date=2022-09-15T12:39:02Z

I tried to run manually reconsiderblock 000000000000001aa25181e4c466e593992c98f9eb21c69ee757b8bb0af50244 but I still get same error. Any suggestions on what should I do?

What version of Dash Core are you using?

v18.0.1

Machine specs:

PastaPastaPasta commented 2 years ago

Hi,

I'm not able to reproduce this at the moment. Would you be able to do the following for me?

shutdown dashd delete debug.log restart dashd with debug all. IE dashd --debug=1 or my putting debug=1 please send that debug.log to me, there shouldn't be much sensitive info in there, but you may want to email it to me pasta at dash.org instead of posting it publicly.

Thanks, that should provide us more info as to why it's being marked a bad-qc-invalid

message commented 2 years ago

I'm sorry. I was pushed into deleting blockchain and re-downloading it again, because I didn't knew how fast I would receive a reply. I still sent you an email, but it's without --debug.

kxcd commented 2 years ago

dashd -debug for the record.

PastaPastaPasta commented 2 years ago

dashd -debug for the record.

This is the same as -debug=1 btw

M03G commented 2 years ago

@message @PastaPastaPasta I have a similar problem on the same block.

M03G commented 2 years ago
PastaPastaPasta commented 2 years ago

Hi. If you updated after the hard fork, it is likely you'll have to reindex.

M03G commented 2 years ago

Hi. If you updated after the hard fork, it is likely you'll have to reindex.

The error appeared about 6-7 days ago. After that, the version was updated. Unfortunately, I do not remember when the update was last installed. What hard fork are you talking about? When it was?

M03G commented 2 years ago

rescan did not help. reindex helped. Thanks