diff --git a/src/validation.cpp b/src/validation.cpp index a7ac757b48..28c69b35cd 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4803,6 +4803,10 @@ void Chainstate::LoadExternalBlockFile( blkdat >> *pblock; nRewind = blkdat.GetPos(); + // Set nFlags in case of proof of stake block + if (pblock->IsProofOfStake()) + pblock->nFlags |= CBlockIndex::BLOCK_PROOF_OF_STAKE; + BlockValidationState state; if (AcceptBlock(pblock, state, nullptr, true, dbp, nullptr, true)) { nLoaded++; @@ -4841,6 +4845,7 @@ void Chainstate::LoadExternalBlockFile( LogPrint(BCLog::REINDEX, "%s: Processing out of order child %s of %s\n", __func__, pblockrecursive->GetHash().ToString(), head.ToString()); LOCK(cs_main); + BlockValidationState dummy; if (AcceptBlock(pblockrecursive, dummy, nullptr, true, &it->second, nullptr, true)) { nLoaded++;