Reconstruct coins/ from scratch when missing.
This commit is contained in:
committed by
Pieter Wuille
parent
d79775a04d
commit
89b7019be8
@@ -865,7 +865,7 @@ bool AppInit2()
|
||||
if (walletdb.ReadBestBlock(locator))
|
||||
pindexRescan = locator.GetBlockIndex();
|
||||
}
|
||||
if (pindexBest != pindexRescan)
|
||||
if (pindexBest && pindexBest != pindexRescan)
|
||||
{
|
||||
uiInterface.InitMessage(_("Rescanning..."));
|
||||
printf("Rescanning last %i blocks (from block %i)...\n", pindexBest->nHeight - pindexRescan->nHeight, pindexRescan->nHeight);
|
||||
|
||||
Reference in New Issue
Block a user