aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-12-02 21:59:22 +0100
committerPieter Wuille <pieterw@google.com>2012-12-06 17:00:12 +0100
commit89b7019be884962729784ab326c46be88ed4784c (patch)
tree73075858986d45fd61276358e21a411d8014f5a5 /src/init.cpp
parentd79775a04d6dfc03dfc71d7811375a33e1e5c833 (diff)
Reconstruct coins/ from scratch when missing.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index a224b336ce..615e753add 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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);