HomePhabricator

Rework gettransaction / getblock RPC calls
9a6ab7f14206Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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).

Details

Provenance
Gavin Andresen <gavinandresen@gmail.com>Authored on Jun 24 2012, 21:04
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGfe70b09c4285: Merge pull request #1555 from TheBlueMatt/warnings
Branches
Unknown
Tags
Unknown

Event Timeline

Gavin Andresen <gavinandresen@gmail.com> committed rSTAGING9a6ab7f14206: Rework gettransaction / getblock RPC calls (authored by Gavin Andresen <gavinandresen@gmail.com>).Jul 5 2012, 16:42