From 7e6569ea5be8cb26454ede3efb6a50b393aaa9be Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Wed, 29 Apr 2015 13:30:16 +0200 Subject: [PATCH] [squashme] improve/corrects prune mode detection test for required wallet rescans --- src/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.cpp b/src/init.cpp index c102464ad90..24e7e1c04a4 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1318,7 +1318,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) if (fPruneMode) { CBlockIndex *block = chainActive.Tip(); - while (block && block->pprev && (block->pprev->nStatus & BLOCK_HAVE_DATA) && pindexRescan != block) + while (block && block->pprev && (block->pprev->nStatus & BLOCK_HAVE_DATA) && block->pprev->nTx > 0 && pindexRescan != block) block = block->pprev; if (pindexRescan != block)