|
|
@ -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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|