diff options
author | Matt Corallo <git@bluematt.me> | 2017-06-05 11:50:47 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-06-09 13:10:05 -0400 |
commit | 3533fb4d33ecc94a789cb5d4489da22a68fb2168 (patch) | |
tree | d4210584798f80828e4a133bb3d72944cf6a414a /src/coins.h | |
parent | ec1271f2bea52d43bd24fb93d32d24168f8c6a74 (diff) |
Return a bool in SpendCoin to restore pre-per-utxo assert semantics
Since its free to do so, assert that Spends succeeded when we expect
them to.
Diffstat (limited to 'src/coins.h')
-rw-r--r-- | src/coins.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coins.h b/src/coins.h index 476db8f37c..4a0eaadc82 100644 --- a/src/coins.h +++ b/src/coins.h @@ -238,7 +238,7 @@ public: * If no unspent output exists for the passed outpoint, this call * has no effect. */ - void SpendCoin(const COutPoint &outpoint, Coin* moveto = nullptr); + bool SpendCoin(const COutPoint &outpoint, Coin* moveto = nullptr); /** * Push the modifications applied to this cache to its base. |