From 1683b1f58b411a6f889694c88afd662da3fd342c Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 16 Sep 2016 18:43:30 +1200 Subject: [PATCH] Clear note witness caches on reindex --- src/init.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/init.cpp b/src/init.cpp index a25179612..8c7a227ba 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -532,6 +532,11 @@ void ThreadImport(std::vector vImportFiles) RenameThread("bitcoin-loadblk"); // -reindex if (fReindex) { +#ifdef ENABLE_WALLET + if (pwalletMain) { + pwalletMain->ClearNoteWitnessCache(); + } +#endif CImportingNow imp; int nFile = 0; while (true) {