mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Allow bitcoin-tx to parse partial transactions
Restore pre V0.13.1 functionality to bitcoin-tx and allow it to parse 0-input partial transactions.
This commit is contained in:
parent
ed64bcec2d
commit
7451cf59cd
2 changed files with 11 additions and 1 deletions
|
|
@ -629,7 +629,7 @@ static int CommandLineRawTx(int argc, char* argv[])
|
|||
if (strHexTx == "-") // "-" implies standard input
|
||||
strHexTx = readStdin();
|
||||
|
||||
if (!DecodeHexTx(txDecodeTmp, strHexTx))
|
||||
if (!DecodeHexTx(txDecodeTmp, strHexTx, true))
|
||||
throw runtime_error("invalid transaction encoding");
|
||||
|
||||
startArg = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue