diff options
| author | Matt Corallo <[email protected]> | 2018-03-26 11:20:56 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2018-04-13 15:18:26 -0400 |
| commit | 2874709a9f23d16eacfee1e53fadaff8081f16e6 (patch) | |
| tree | 31a26ab89bec62e7d13aea8d1888ab883e4bec38 /src/rpc/rawtransaction.cpp | |
| parent | Merge #11200: Allow for aborting rescans in the GUI (diff) | |
| download | discoin-2874709a9f23d16eacfee1e53fadaff8081f16e6.tar.xz discoin-2874709a9f23d16eacfee1e53fadaff8081f16e6.zip | |
Expose a transaction's weight via RPC
Diffstat (limited to 'src/rpc/rawtransaction.cpp')
| -rw-r--r-- | src/rpc/rawtransaction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 543e4fc35..7bdf09812 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -94,6 +94,7 @@ UniValue getrawtransaction(const JSONRPCRequest& request) " \"hash\" : \"id\", (string) The transaction hash (differs from txid for witness transactions)\n" " \"size\" : n, (numeric) The serialized transaction size\n" " \"vsize\" : n, (numeric) The virtual transaction size (differs from size for witness transactions)\n" + " \"weight\" : n, (numeric) The transaction's weight (between vsize*4-3 and vsize*4)\n" " \"version\" : n, (numeric) The version\n" " \"locktime\" : ttt, (numeric) The lock time\n" " \"vin\" : [ (array of json objects)\n" @@ -494,6 +495,7 @@ UniValue decoderawtransaction(const JSONRPCRequest& request) " \"hash\" : \"id\", (string) The transaction hash (differs from txid for witness transactions)\n" " \"size\" : n, (numeric) The transaction size\n" " \"vsize\" : n, (numeric) The virtual transaction size (differs from size for witness transactions)\n" + " \"weight\" : n, (numeric) The transaction's weight (between vsize*4 - 3 and vsize*4)\n" " \"version\" : n, (numeric) The version\n" " \"locktime\" : ttt, (numeric) The lock time\n" " \"vin\" : [ (array of json objects)\n" |