Clear note witness caches on reindex

This commit is contained in:
Jack Grigg 2016-09-16 18:43:30 +12:00
parent 76b226586e
commit 1683b1f58b
1 changed files with 5 additions and 0 deletions

View File

@ -532,6 +532,11 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
RenameThread("bitcoin-loadblk");
// -reindex
if (fReindex) {
#ifdef ENABLE_WALLET
if (pwalletMain) {
pwalletMain->ClearNoteWitnessCache();
}
#endif
CImportingNow imp;
int nFile = 0;
while (true) {