aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/test/wallet_tests.cpp
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-10-12 22:07:18 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-10-15 17:01:51 -0400
commit99516285b7cf2664563712d95d95f54e1985c0c2 (patch)
tree2aeecbdf4d2739735a04ad70bc0dd21c43ca82c6 /src/wallet/test/wallet_tests.cpp
parentdcd6eeb64adb2b532f5003cbb86ba65b3c08a87b (diff)
downloadbitcoin-99516285b7cf2664563712d95d95f54e1985c0c2.tar.xz
tests: Use legacy change type in subtract fee from outputs test
The subtract fee from outputs assumes that the leftover input amount will be dropped to fees. However this only happens if that amount is less than the cost of change. In the event that it is higher than the cost of change, the leftover amount will actually become a change output. To avoid this scenario, force a change type which has a high cost of change.
Diffstat (limited to 'src/wallet/test/wallet_tests.cpp')
0 files changed, 0 insertions, 0 deletions