Error when trying to send very precise amount #18

issue davout openend this issue on January 2, 2011
  1. davout commented at 11:40 pm on January 2, 2011: none

    I generated block 100283 and collected a sub bitcent transaction fee. I get an “Insufficient funds” error when trying to send my exact balance to another address. It seems that there is either :

    • wrong behaviour (should send the amount), or
    • wrong error message, (the balance is ok but the client forbids me to send it)

    Block : 000000000003d014210dcffd602715545bce976f0f257d99279c83c2778e7150

    Here’s the trace

  2. davout commented at 11:43 pm on January 2, 2011: none
    Wow, I just sent 50 BTC, and now the client is reporting zero balance…
  3. gavinandresen commented at 5:37 pm on January 3, 2011: contributor

    What happened:

    Send 50.006… was rounded to 50.01 (amounts get rounded to two decimals). Causing insufficient funds message.

    Send 50 ran into special-case code for micropayments; if making change would result in less than 0.01 coins (which would trigger the you-must-pay-a-0.01-fee transaction spam prevention code), then the sub-cent amount is sent along as a transaction fee.

    At the very least, the RPC code should put the amount being sent in the insufficient funds message.

    Doing something more with sub-cent transactions needs more careful thought…

  4. tcatm closed this on Mar 22, 2011

  5. namecoin-qt referenced this in commit 0668d15b5f on Jun 13, 2013
  6. justmoon referenced this in commit e49a21dcaf on Apr 7, 2014
  7. rebroad referenced this in commit b5ab15d275 on Jul 21, 2014
  8. rdponticelli referenced this in commit 728554dfae on Nov 26, 2014
  9. rubensayshi referenced this in commit 49bbbedf6e on Mar 16, 2015
  10. destenson referenced this in commit 00655a2075 on Jun 26, 2016
  11. braydonf referenced this in commit 956b424292 on Jun 28, 2016
  12. jameshilliard referenced this in commit 50b7fa8dcd on Jun 14, 2017
  13. classesjack referenced this in commit 4a36d31303 on Jan 2, 2018
  14. CryptAxe referenced this in commit 8fd777b8eb on Mar 11, 2018
  15. KrzysiekJ referenced this in commit 3d485e491d on Mar 28, 2018
  16. effectsToCause referenced this in commit 9c64568f14 on Jun 22, 2018
  17. MarcoFalke referenced this in commit 4f2e6c8b88 on Jan 26, 2019
  18. DigiGreenCoin referenced this in commit c8b9ae7c44 on Oct 29, 2019
  19. laanwj referenced this in commit b586bbd558 on Nov 6, 2019
  20. laanwj referenced this in commit 97b66d34eb on Nov 7, 2019
  21. laanwj referenced this in commit e9c85bb139 on Nov 7, 2019
  22. laanwj referenced this in commit c92f7af618 on Nov 7, 2019
  23. laanwj referenced this in commit 656712fe94 on Dec 9, 2019
  24. laanwj referenced this in commit 4abd92d5c4 on Dec 12, 2019
  25. Warchant referenced this in commit 7958da26e8 on Dec 31, 2019
  26. laanwj referenced this in commit 89c8fe5189 on Jan 2, 2020
  27. laanwj referenced this in commit 66480821b3 on Jan 28, 2020
  28. Losangelosgenetics referenced this in commit 94f1d8fc76 on Mar 12, 2020
  29. Losangelosgenetics referenced this in commit 804d25ac88 on Mar 12, 2020
  30. phm87 referenced this in commit 70d7dc2b94 on Jun 16, 2020
  31. KolbyML referenced this in commit 2083327f81 on Aug 1, 2020
  32. KolbyML referenced this in commit 473f9caedb on Aug 1, 2020
  33. laanwj referenced this in commit 924a4ff7eb on Oct 29, 2020
  34. jonasschnelli referenced this in commit 616eace02a on Jan 11, 2021
  35. rajarshimaitra referenced this in commit 5ed9174b67 on Mar 23, 2021
  36. rajarshimaitra referenced this in commit 3b7d5d04a1 on Mar 23, 2021
  37. MarcoFalke referenced this in commit bce09da122 on Apr 28, 2021
  38. MarcoFalke referenced this in commit eb9a1fe037 on May 7, 2021
  39. MarcoFalke referenced this in commit c857148636 on May 15, 2021
  40. rajarshimaitra referenced this in commit bb065e2f01 on Aug 5, 2021
  41. DrahtBot locked this on Sep 8, 2021

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: 2024-10-04 13:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me