aboutsummaryrefslogtreecommitdiff
path: root/src/script.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2012-06-24 17:04:50 -0400
committerGavin Andresen <[email protected]>2012-07-05 12:42:25 -0400
commit9a6ab7f1420691267e78e302ff224076945e9133 (patch)
tree932408e289103a55f057eb34751cae5fcca2b2a5 /src/script.cpp
parentMerge pull request #1555 from TheBlueMatt/warnings (diff)
downloaddiscoin-9a6ab7f1420691267e78e302ff224076945e9133.tar.xz
discoin-9a6ab7f1420691267e78e302ff224076945e9133.zip
Rework gettransaction / getblock RPC calls
This PULL reworks new (post-0.6.*) features of the gettransaction/getblock RPC calls as follows: It removes the 'decompositions' object argument from getblock, replacing it just a list of transaction hashes; equivalent (I believe) of passing the {"tx":"hash"} decomposition. It replaces the 'decompositions' object argument of gettransaction with a boolean flag; if true, returns the same stuff that the {"script":"obj"} decomposition would return (txins/txouts as hex, disassembled, and bitcoin addresses). It adds a "rawtx" field to the output of gettransaction, that is the entire transaction serialized and hex-encoded. It removes the "size" field from gettransaction, since the size is trivial to compute from the "rawtx" field (either take the length after hex-decoding, or just compute it as hex-length/2).
Diffstat (limited to 'src/script.cpp')
0 files changed, 0 insertions, 0 deletions