aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/bdb.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-08-11 22:05:51 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-08-13 00:34:47 -0400
commitd9262324e80da32725e21d4e0fbfee56f25490b1 (patch)
tree7428fc9c27676f8a9266d56e89def41839d13124 /src/wallet/bdb.h
parent2de222c40198d3d528668d78cc52e2ce3fa96765 (diff)
downloadbitcoin-d9262324e80da32725e21d4e0fbfee56f25490b1.tar.xz
wallet: Assert that enough was selected to cover the fees
When the fee is not subtracted from the outputs, the amount that has been reserved for the fee (change_and_fee - change_amount) must be enough to cover the fee that is needed. It would be a bug to not do so, so use an assert to make this obvious if such a situation were to occur.
Diffstat (limited to 'src/wallet/bdb.h')
0 files changed, 0 insertions, 0 deletions