mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
[squashme] improve/corrects prune mode detection test for required wallet rescans
This commit is contained in:
parent
7a12119d7a
commit
7e6569ea5b
@ -1318,7 +1318,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
if (fPruneMode)
|
if (fPruneMode)
|
||||||
{
|
{
|
||||||
CBlockIndex *block = chainActive.Tip();
|
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;
|
block = block->pprev;
|
||||||
|
|
||||||
if (pindexRescan != block)
|
if (pindexRescan != block)
|
||||||
|
Loading…
Reference in New Issue
Block a user