I ran into this edge case when running the test on Elements. I had a 0-value output as change.
wallet_balance.py: Prevent edge cases #16079
pull stevenroose wants to merge 1 commits into bitcoin:master from stevenroose:wallet-balance-test changing 1 files +7 −2-
stevenroose commented at 2:39 PM on May 23, 2019: contributor
- fanquake added the label Tests on May 23, 2019
-
in test/functional/wallet_balance.py:31 in d4755667b3 outdated
29 | @@ -30,10 +30,15 @@ def create_transactions(node, address, amt, fees): 30 | ins_total += utxo['amount'] 31 | if ins_total + max(fees) > amt:
MarcoFalke commented at 2:48 PM on May 23, 2019:Shouldn't this also say?
if ins_total >= amt + max(fees):
stevenroose commented at 3:12 PM on May 23, 2019:ah yeah I first had that but then rebased on master and noticed that someone already added that
max(fees)check. I will edit it to be>=instead.
stevenroose commented at 3:14 PM on May 23, 2019:changed
MarcoFalke commented at 2:48 PM on May 23, 2019: memberACK, ran into the same issue yesterday. Thanks for fixing before I could
stevenroose force-pushed on May 23, 2019wallet_balance.py: Prevent edge cases bb41e632caMarcoFalke referenced this in commit b4223dd5f1 on May 23, 2019MarcoFalke merged this on May 23, 2019MarcoFalke closed this on May 23, 2019promag commented at 4:10 PM on May 23, 2019: memberutACK bb41e63.
luke-jr referenced this in commit 25dcf01ac5 on Aug 23, 2019deadalnix referenced this in commit 06b3ec662d on Jun 22, 2020MarcoFalke locked this on Dec 16, 2021ContributorsLabels
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-19 03:14 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-19 03:14 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me