listunspent: changed outputing of the full scriptPubKey object rather than just the hex #1867

pull xblitz wants to merge 3 commits into bitcoin:master from xblitz:master changing 3 files +11 −4
  1. xblitz commented at 7:00 PM on September 25, 2012: none

    so its easier to see what address the unspent outputs belong to

  2. Fix: when testnet=1 specified, change default ports to 18332 and 18333 b202d43076
  3. listunspent: changed outputing of the full scriptPubKey object rather
    than just the hex
    e5c433951c
  4. jgarzik commented at 7:17 PM on September 25, 2012: contributor

    NAK, this breaks existing setups (it's in released 0.7), and further it forces anybody wanting the raw form to perform extra parsing.

    Decomposition into readable form is an extra step, see e.g. "decoderawtransaction" RPC

  5. xblitz commented at 7:28 PM on September 25, 2012: none

    Agreed about breaking existing setups.. maybe we can just add an address property instead

  6. jgarzik commented at 7:29 PM on September 25, 2012: contributor

    just use decoderawtransaction, that is why it's there ;p

  7. xblitz commented at 7:42 PM on September 25, 2012: none

    meaning to find the addresses of the output it we need to do a getrawtransaction and then a decoderawtransaction for each output .. so why are the amounts and confirmations displayed.. you can also get them from decoderawtransaction ;p

  8. Merge branch 'testports' of git://github.com/kjj2/bitcoin 6d14a59e0e
  9. gavinandresen commented at 8:11 PM on September 25, 2012: contributor

    You don't need to getrawtransaction then decoderawtransaction, you can do both of those in one step by passing '1' as the second argument to getrawtransaction. And if you have a bunch of transaction ids you can use the new 'batch' JSON-RPC support to do it all in one round-trip.

    Closing.

  10. gavinandresen closed this on Sep 25, 2012

  11. xblitz commented at 1:53 AM on September 26, 2012: none

    Awesome thanks!... guess i'll ask in the forum next time.. sorry :/

  12. KolbyML referenced this in commit c65d0368a0 on Dec 5, 2020
  13. 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-17 21:16 UTC

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