Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcdump.cpp
Show First 20 Lines • Show All 2,236 Lines • ▼ Show 20 Lines | if (rescan) { | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
return response; | return response; | ||||
} | } | ||||
void RegisterDumpRPCCommands( | Span<const CRPCCommand> GetWalletDumpRPCCommands() { | ||||
interfaces::Chain &chain, | |||||
std::vector<std::unique_ptr<interfaces::Handler>> &handlers) { | |||||
// clang-format off | // clang-format off | ||||
static const CRPCCommand commands[] = { | static const CRPCCommand commands[] = { | ||||
// category name actor (function) argNames | // category name actor (function) argNames | ||||
// ------------------- ------------------------ ---------------------- ---------- | // ------------------- ------------------------ ---------------------- ---------- | ||||
{ "wallet", "abortrescan", abortrescan, {} }, | { "wallet", "abortrescan", abortrescan, {} }, | ||||
{ "wallet", "dumpprivkey", dumpprivkey, {"address"} }, | { "wallet", "dumpprivkey", dumpprivkey, {"address"} }, | ||||
{ "wallet", "dumpwallet", dumpwallet, {"filename"} }, | { "wallet", "dumpwallet", dumpwallet, {"filename"} }, | ||||
{ "wallet", "importdescriptors", importdescriptors, {"requests"} }, | { "wallet", "importdescriptors", importdescriptors, {"requests"} }, | ||||
{ "wallet", "importmulti", importmulti, {"requests","options"} }, | { "wallet", "importmulti", importmulti, {"requests","options"} }, | ||||
{ "wallet", "importprivkey", importprivkey, {"privkey","label","rescan"} }, | { "wallet", "importprivkey", importprivkey, {"privkey","label","rescan"} }, | ||||
{ "wallet", "importwallet", importwallet, {"filename"} }, | { "wallet", "importwallet", importwallet, {"filename"} }, | ||||
{ "wallet", "importaddress", importaddress, {"address","label","rescan","p2sh"} }, | { "wallet", "importaddress", importaddress, {"address","label","rescan","p2sh"} }, | ||||
{ "wallet", "importprunedfunds", importprunedfunds, {"rawtransaction","txoutproof"} }, | { "wallet", "importprunedfunds", importprunedfunds, {"rawtransaction","txoutproof"} }, | ||||
{ "wallet", "importpubkey", importpubkey, {"pubkey","label","rescan"} }, | { "wallet", "importpubkey", importpubkey, {"pubkey","label","rescan"} }, | ||||
{ "wallet", "removeprunedfunds", removeprunedfunds, {"txid"} }, | { "wallet", "removeprunedfunds", removeprunedfunds, {"txid"} }, | ||||
}; | }; | ||||
// clang-format on | // clang-format on | ||||
for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++) { | return MakeSpan(commands); | ||||
handlers.emplace_back(chain.handleRpc(commands[vcidx])); | |||||
} | |||||
} | } |