Skip to content

Commit 7e6569e

Browse files
committed
[squashme] improve/corrects prune mode detection test for required wallet rescans
1 parent 7a12119 commit 7e6569e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
13181318
if (fPruneMode)
13191319
{
13201320
CBlockIndex *block = chainActive.Tip();
1321-
while (block && block->pprev && (block->pprev->nStatus & BLOCK_HAVE_DATA) && pindexRescan != block)
1321+
while (block && block->pprev && (block->pprev->nStatus & BLOCK_HAVE_DATA) && block->pprev->nTx > 0 && pindexRescan != block)
13221322
block = block->pprev;
13231323

13241324
if (pindexRescan != block)

0 commit comments

Comments
 (0)