mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Assert that CWallet::SyncMetaData finds oldest transaction.
This fixes one of the Clang static analyzer warnings mentioned in #9573.
This commit is contained in:
parent
22e301a3d5
commit
6c4042a5d0
@ -569,6 +569,9 @@ void CWallet::SyncMetaData(std::pair<TxSpends::iterator, TxSpends::iterator> ran
|
|||||||
copyFrom = &mapWallet[hash];
|
copyFrom = &mapWallet[hash];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert(copyFrom);
|
||||||
|
|
||||||
// Now copy data from copyFrom to rest:
|
// Now copy data from copyFrom to rest:
|
||||||
for (TxSpends::iterator it = range.first; it != range.second; ++it)
|
for (TxSpends::iterator it = range.first; it != range.second; ++it)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user