Browse Source

Assert that CWallet::SyncMetaData finds oldest transaction.

This fixes one of the Clang static analyzer warnings mentioned in #9573.
0.16
Eelis 7 years ago
parent
commit
6c4042a5d0
  1. 3
      src/wallet/wallet.cpp

3
src/wallet/wallet.cpp

@ -569,6 +569,9 @@ void CWallet::SyncMetaData(std::pair<TxSpends::iterator, TxSpends::iterator> ran @@ -569,6 +569,9 @@ void CWallet::SyncMetaData(std::pair<TxSpends::iterator, TxSpends::iterator> ran
copyFrom = &mapWallet[hash];
}
}
assert(copyFrom);
// Now copy data from copyFrom to rest:
for (TxSpends::iterator it = range.first; it != range.second; ++it)
{

Loading…
Cancel
Save