Clear witnessHeight and nWitnessCacheSize in ClearNoteWitnessCache

This commit is contained in:
Jack Grigg
2016-11-15 17:53:41 +13:00
parent ccfd8aae1d
commit a4ef3aa9b5
2 changed files with 9 additions and 0 deletions

View File

@@ -630,8 +630,10 @@ void CWallet::ClearNoteWitnessCache()
for (std::pair<const uint256, CWalletTx>& wtxItem : mapWallet) {
for (mapNoteData_t::value_type& item : wtxItem.second.mapNoteData) {
item.second.witnesses.clear();
item.second.witnessHeight = -1;
}
}
nWitnessCacheSize = 0;
}
void CWallet::IncrementNoteWitnesses(const CBlockIndex* pindex,