aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-12-02 16:56:46 -0800
committerGavin Andresen <[email protected]>2013-12-02 16:56:46 -0800
commit2aed2b30b112aaaf7d46df4fd947648ca8df4e67 (patch)
treeb00689d36050d3c2f301329a863234c510546b88 /src/wallet.cpp
parentMerge pull request #3341 from Need4Video/master (diff)
parentSanitize assert usage and refuse to compile with NDEBUG. (diff)
downloaddiscoin-2aed2b30b112aaaf7d46df4fd947648ca8df4e67.tar.xz
discoin-2aed2b30b112aaaf7d46df4fd947648ca8df4e67.zip
Merge pull request #3344 from gmaxwell/assert_hazards
Sanitize assert usage and refuse to compile with NDEBUG.
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index b9110d127..14d685d6e 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -1298,7 +1298,9 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64_t> >& vecSend,
// Reserve a new key pair from key pool
CPubKey vchPubKey;
- assert(reservekey.GetReservedKey(vchPubKey)); // should never fail, as we just unlocked
+ bool ret;
+ ret = reservekey.GetReservedKey(vchPubKey);
+ assert(ret); // should never fail, as we just unlocked
scriptChange.SetDestination(vchPubKey.GetID());
}