mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Make DecodeHexTx return a CMutableTransaction
This commit is contained in:
@@ -623,7 +623,7 @@ static int CommandLineRawTx(int argc, char* argv[])
|
||||
argv++;
|
||||
}
|
||||
|
||||
CTransaction txDecodeTmp;
|
||||
CMutableTransaction tx;
|
||||
int startArg;
|
||||
|
||||
if (!fCreateBlank) {
|
||||
@@ -636,15 +636,13 @@ static int CommandLineRawTx(int argc, char* argv[])
|
||||
if (strHexTx == "-") // "-" implies standard input
|
||||
strHexTx = readStdin();
|
||||
|
||||
if (!DecodeHexTx(txDecodeTmp, strHexTx, true))
|
||||
if (!DecodeHexTx(tx, strHexTx, true))
|
||||
throw std::runtime_error("invalid transaction encoding");
|
||||
|
||||
startArg = 2;
|
||||
} else
|
||||
startArg = 1;
|
||||
|
||||
CMutableTransaction tx(txDecodeTmp);
|
||||
|
||||
for (int i = startArg; i < argc; i++) {
|
||||
std::string arg = argv[i];
|
||||
std::string key, value;
|
||||
|
||||
Reference in New Issue
Block a user