diff options
| author | Gavin Andresen <[email protected]> | 2012-06-24 17:04:50 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-07-05 12:42:25 -0400 |
| commit | 9a6ab7f1420691267e78e302ff224076945e9133 (patch) | |
| tree | 932408e289103a55f057eb34751cae5fcca2b2a5 /src/script.cpp | |
| parent | Merge pull request #1555 from TheBlueMatt/warnings (diff) | |
| download | discoin-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