Make output of gettxout RPC more consistent #2149

pull sipa wants to merge 1 commits into bitcoin:master from sipa:fixtxoutrpc changing 1 files +4 −3
  1. sipa commented at 9:52 PM on January 4, 2013: member
    • Report "value" in BTC, rather than "amount" in satoshis
    • Use ScriptPubKeyToJSON to report script data
  2. Make output of gettxout RPC more consistent
    * Report "value" in BTC, rather than "amount" in satoshis
    * Use ScriptPubKeyToJSON to report script data
    4e68391a7f
  3. BitcoinPullTester commented at 10:13 PM on January 4, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/4e68391a7f3b3361584af032bf671bd9dc0677fe for binaries and test log.

  4. luke-jr commented at 10:26 PM on January 4, 2013: member

    This is changing things in the wrong direction. BTC values should be changed to amounts.

  5. gmaxwell commented at 10:46 PM on January 4, 2013: contributor

    The non-integers in the API needing special json handling does stink— wittness my complaints about the python module's inconsistent use of decimal... but that no reason to make the API inconsistent.

  6. sipa commented at 11:15 PM on January 4, 2013: member

    I am all for using satoshis expressed as an integer, or amounts encoded as strings in the RPC interface. But consistency is more important.

    I hope we can one day do a nice "RPC v2" with consistent names, nicely separated calls for net/wallet/blockchain, with support for multiwallet and authentication, and amounts that don't rely on floats, though.

  7. gavinandresen commented at 7:46 PM on January 14, 2013: contributor

    ACK

  8. gavinandresen referenced this in commit 2c7847349d on Jan 18, 2013
  9. gavinandresen merged this on Jan 18, 2013
  10. gavinandresen closed this on Jan 18, 2013

  11. sipa deleted the branch on May 3, 2013
  12. laudney referenced this in commit 8b0a108e7d on Mar 19, 2014
  13. HashUnlimited referenced this in commit 7814537a40 on Jul 27, 2018
  14. sidhujag referenced this in commit e7da8f339b on Jul 31, 2018
  15. 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: 2026-04-19 09:16 UTC

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