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 2c5e2bc commit 85c9ea4Copy full SHA for 85c9ea4
src/llmq/quorums_blockprocessor.cpp
@@ -271,6 +271,10 @@ void CQuorumBlockProcessor::UpgradeDB()
271
if (chainActive.Height() >= Params().GetConsensus().DIP0003EnforcementHeight) {
272
auto pindex = chainActive[Params().GetConsensus().DIP0003EnforcementHeight];
273
while (pindex) {
274
+ if (fPruneMode && !(pindex->nStatus & BLOCK_HAVE_DATA)) {
275
+ // Too late, we already pruned blocks we needed to reprocess commitments
276
+ throw std::runtime_error(std::string(__func__) + ": Quorum Commitments DB upgrade failed, you need to re-download the blockchain");
277
+ }
278
CBlock block;
279
bool r = ReadBlockFromDisk(block, pindex, Params().GetConsensus());
280
assert(r);
0 commit comments