Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction.cpp
Show First 20 Lines • Show All 380 Lines • ▼ Show 20 Lines | if (ntxFound != setTxIds.size()) { | ||||
throw JSONRPCError( | throw JSONRPCError( | ||||
RPC_INVALID_ADDRESS_OR_KEY, | RPC_INVALID_ADDRESS_OR_KEY, | ||||
"Not all transactions found in specified or retrieved block"); | "Not all transactions found in specified or retrieved block"); | ||||
} | } | ||||
CDataStream ssMB(SER_NETWORK, PROTOCOL_VERSION); | CDataStream ssMB(SER_NETWORK, PROTOCOL_VERSION); | ||||
CMerkleBlock mb(block, setTxIds); | CMerkleBlock mb(block, setTxIds); | ||||
ssMB << mb; | ssMB << mb; | ||||
std::string strHex = HexStr(ssMB.begin(), ssMB.end()); | std::string strHex = HexStr(ssMB); | ||||
return strHex; | return strHex; | ||||
} | } | ||||
static UniValue verifytxoutproof(const Config &config, | static UniValue verifytxoutproof(const Config &config, | ||||
const JSONRPCRequest &request) { | const JSONRPCRequest &request) { | ||||
RPCHelpMan{ | RPCHelpMan{ | ||||
"verifytxoutproof", | "verifytxoutproof", | ||||
"Verifies that a proof points to a transaction in a block, returning " | "Verifies that a proof points to a transaction in a block, returning " | ||||
▲ Show 20 Lines • Show All 1,783 Lines • Show Last 20 Lines |