Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction.cpp
Show First 20 Lines • Show All 1,208 Lines • ▼ Show 20 Lines | #endif | ||||
RPCTypeCheck( | RPCTypeCheck( | ||||
request.params, | request.params, | ||||
{UniValue::VSTR, UniValue::VARR, UniValue::VARR, UniValue::VSTR}, true); | {UniValue::VSTR, UniValue::VARR, UniValue::VARR, UniValue::VSTR}, true); | ||||
// Make a JSONRPCRequest to pass on to the right signrawtransaction* command | // Make a JSONRPCRequest to pass on to the right signrawtransaction* command | ||||
JSONRPCRequest new_request; | JSONRPCRequest new_request; | ||||
new_request.id = request.id; | new_request.id = request.id; | ||||
new_request.URI = std::move(request.URI); | |||||
new_request.params.setArray(); | new_request.params.setArray(); | ||||
// For signing with private keys | // For signing with private keys | ||||
if (!request.params[2].isNull()) { | if (!request.params[2].isNull()) { | ||||
new_request.params.push_back(request.params[0]); | new_request.params.push_back(request.params[0]); | ||||
// Note: the prevtxs and privkeys are reversed for | // Note: the prevtxs and privkeys are reversed for | ||||
// signrawtransactionwithkey | // signrawtransactionwithkey | ||||
new_request.params.push_back(request.params[2]); | new_request.params.push_back(request.params[2]); | ||||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |