Patch from luke-jr
avoid sub-cent change (lost in fees) whenever possible #85
pull tcatm wants to merge 1 commits into bitcoin:master from tcatm:subcent-change changing 1 files +17 −7-
tcatm commented at 1:12 AM on March 1, 2011: none
-
Bugfix: avoid sub-cent change (lost in fees) whenever possible a14bf1946d
-
gavinandresen commented at 2:40 AM on March 1, 2011: contributor
Looks good at first glance. Can we brainstorm test cases that we think might cause problems?
E.g. Wallet with (only) available transactions of +1 +2.0001 +3 : Send 6 bitcoins; what happens?
Same wallet, send 2 (I think you'll get a 2.0001+1 spend with 1.0001 change)...
Any other tricky edge cases?
- wtogami referenced this in commit b64e8648be on Nov 9, 2013
- rdponticelli referenced this in commit cc20075ef7 on Nov 26, 2014
- MarcoFalke referenced this in commit eb17806775 on Mar 26, 2016
- ptschip referenced this in commit a28ee85d34 on Feb 13, 2018
- effectsToCause referenced this in commit 4abd2ac6fa on Jun 22, 2018
- attilaaf referenced this in commit cba73c9b84 on Jan 13, 2020
- rajarshimaitra referenced this in commit cc44886ed3 on Aug 5, 2021
- DrahtBot locked this on Sep 8, 2021