diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-12-12 09:11:36 -0800 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2012-12-12 09:11:36 -0800 |
commit | dbd5bb803938f0030902b040e7ae191fc75d69b5 (patch) | |
tree | 8e1ff18e14515fe142e747ddec7bda62a9461dde /src/init.cpp | |
parent | 8b83e2fc2e7440c49902babc7d89b629f8651ad8 (diff) | |
parent | 89b7019be884962729784ab326c46be88ed4784c (diff) |
Merge pull request #2062 from sipa/nocoins
Reconstruct coins/ database when missing
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index b68ca1cf1a..656bda640f 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); |