Clear witnessHeight and nWitnessCacheSize in ClearNoteWitnessCache
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user