From 403b9b4e4dc10c685ccb51646441655d07ac1213 Mon Sep 17 00:00:00 2001 From: Eirik Ogilvie-Wigley Date: Tue, 17 Jul 2018 11:53:54 -0600 Subject: [PATCH] Clear sapling witness cache --- src/wallet/wallet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index c4f9f1557..585bfd615 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -748,6 +748,10 @@ void CWallet::ClearNoteWitnessCache() item.second.witnesses.clear(); item.second.witnessHeight = -1; } + for (mapSaplingNoteData_t::value_type& item : wtxItem.second.mapSaplingNoteData) { + item.second.witnesses.clear(); + item.second.witnessHeight = -1; + } } nWitnessCacheSize = 0; }