mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-26 06:44:32 +00:00
Only return hex field once in getrawtransaction
The hex is already returned in TxToUniv, no need to give it out a second independent time in getrawtransaction itself. Github-Pull: #11027 Rebased-From: e029c6e709d251809aa04edc08f76a077a2443e7 Tree-SHA512: 4f7892431ddb9b59bcc59756890b97a20d046d1d4898f8a80c564223e1cde1c922da403cea4b8ae79d70741d1a9ff337f077043e5bb538cdc4d34fbe09301240
This commit is contained in:
parent
6ab120cc6c
commit
eb9c21ed79
@ -160,13 +160,10 @@ UniValue getrawtransaction(const JSONRPCRequest& request)
|
|||||||
: "No such mempool transaction. Use -txindex to enable blockchain transaction queries") +
|
: "No such mempool transaction. Use -txindex to enable blockchain transaction queries") +
|
||||||
". Use gettransaction for wallet transactions.");
|
". Use gettransaction for wallet transactions.");
|
||||||
|
|
||||||
std::string strHex = EncodeHexTx(*tx, RPCSerializationFlags());
|
|
||||||
|
|
||||||
if (!fVerbose)
|
if (!fVerbose)
|
||||||
return strHex;
|
return EncodeHexTx(*tx, RPCSerializationFlags());
|
||||||
|
|
||||||
UniValue result(UniValue::VOBJ);
|
UniValue result(UniValue::VOBJ);
|
||||||
result.push_back(Pair("hex", strHex));
|
|
||||||
TxToJSON(*tx, hashBlock, result);
|
TxToJSON(*tx, hashBlock, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user