Browse Source

Simplify ClearNoteWitnessCache()

pull/4/head
Jack Grigg 8 years ago
parent
commit
40600f5089
  1. 3
      src/wallet/wallet.cpp

3
src/wallet/wallet.cpp

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

Loading…
Cancel
Save