Simplify ClearNoteWitnessCache()

This commit is contained in:
Jack Grigg 2016-09-30 15:00:16 +13:00
parent 1683b1f58b
commit 40600f5089
1 changed files with 1 additions and 2 deletions

View File

@ -597,8 +597,7 @@ void CWallet::ClearNoteWitnessCache()
LOCK(cs_wallet); LOCK(cs_wallet);
for (std::pair<const uint256, CWalletTx>& wtxItem : mapWallet) { for (std::pair<const uint256, CWalletTx>& wtxItem : mapWallet) {
for (mapNoteData_t::value_type& item : wtxItem.second.mapNoteData) { for (mapNoteData_t::value_type& item : wtxItem.second.mapNoteData) {
CNoteData* nd = &(item.second); item.second.witnesses.clear();
nd->witnesses.clear();
} }
} }
} }