We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38ed58b commit 820c03aCopy full SHA for 820c03a
src/index/coinstatsindex.cpp
@@ -363,6 +363,14 @@ bool CoinStatsIndex::Init()
363
return error("%s: Cannot read current %s state; index may be corrupted",
364
__func__, GetName());
365
}
366
+
367
+ uint256 out;
368
+ m_muhash.Finalize(out);
369
+ if (entry.muhash != out) {
370
+ return error("%s: Cannot read current %s state; index may be corrupted",
371
+ __func__, GetName());
372
+ }
373
374
m_transaction_output_count = entry.transaction_output_count;
375
m_bogo_size = entry.bogo_size;
376
m_total_amount = entry.total_amount;
0 commit comments