aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelis <eelis@bitonic.nl>2017-08-17 15:26:32 +0200
committerEelis <eelis@bitonic.nl>2017-08-17 15:30:37 +0200
commit6c4042a5d0796b732f441669117b909a3247e465 (patch)
treed16b5cdeb81c393ea816b2c5b2c521f4bb86fe95 /src
parent22e301a3d56dc9e6878380ee92c7d19ca43119d2 (diff)
Assert that CWallet::SyncMetaData finds oldest transaction.
This fixes one of the Clang static analyzer warnings mentioned in #9573.
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index f8c6f9e87b..7542be8216 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -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)
{