mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Add option to return non-segwit serialization via rpc
This commit is contained in:
parent
7d5d44969b
commit
bc7ff8db99
9 changed files with 40 additions and 9 deletions
|
|
@ -223,7 +223,7 @@ UniValue getrawtransaction(const JSONRPCRequest& request)
|
|||
if (!GetTransaction(hash, tx, Params().GetConsensus(), hashBlock, true))
|
||||
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "No information available about transaction");
|
||||
|
||||
string strHex = EncodeHexTx(*tx);
|
||||
string strHex = EncodeHexTx(*tx, RPCSerializationFlags());
|
||||
|
||||
if (!fVerbose)
|
||||
return strHex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue