Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction.cpp
Show First 20 Lines • Show All 2,153 Lines • ▼ Show 20 Lines | static const CRPCCommand commands[] = { | ||||
{ "rawtransactions", "converttopsbt", converttopsbt, {"hexstring","permitsigdata"} }, | { "rawtransactions", "converttopsbt", converttopsbt, {"hexstring","permitsigdata"} }, | ||||
{ "rawtransactions", "utxoupdatepsbt", utxoupdatepsbt, {"psbt", "descriptors"} }, | { "rawtransactions", "utxoupdatepsbt", utxoupdatepsbt, {"psbt", "descriptors"} }, | ||||
{ "rawtransactions", "joinpsbts", joinpsbts, {"txs"} }, | { "rawtransactions", "joinpsbts", joinpsbts, {"txs"} }, | ||||
{ "rawtransactions", "analyzepsbt", analyzepsbt, {"psbt"} }, | { "rawtransactions", "analyzepsbt", analyzepsbt, {"psbt"} }, | ||||
{ "blockchain", "gettxoutproof", gettxoutproof, {"txids", "blockhash"} }, | { "blockchain", "gettxoutproof", gettxoutproof, {"txids", "blockhash"} }, | ||||
{ "blockchain", "verifytxoutproof", verifytxoutproof, {"proof"} }, | { "blockchain", "verifytxoutproof", verifytxoutproof, {"proof"} }, | ||||
}; | }; | ||||
// clang-format on | // clang-format on | ||||
for (const auto &c : commands) { | |||||
for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++) { | t.appendCommand(c.name, &c); | ||||
t.appendCommand(commands[vcidx].name, &commands[vcidx]); | |||||
} | } | ||||
} | } |