MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / registerRpcs

Method registerRpcs

src/wallet/interfaces.cpp:539–549  ·  view source on GitHub ↗

ChainClient methods

Source from the content-addressed store, hash-verified

537
538 //! ChainClient methods
539 void registerRpcs() override
540 {
541 for (const CRPCCommand& command : GetWalletRPCCommands()) {
542 m_rpc_commands.emplace_back(command.category, command.name, [this, &command](const JSONRPCRequest& request, UniValue& result, bool last_handler) {
543 JSONRPCRequest wallet_request = request;
544 wallet_request.context = &m_context;
545 return command.actor(wallet_request, result, last_handler);
546 }, command.argNames, command.unique_id);
547 m_rpc_handlers.emplace_back(m_context.chain->handleRpc(m_rpc_commands.back()));
548 }
549 }
550 bool verify() override { return VerifyWallets(m_context); }
551 bool load() override { return LoadWallets(m_context); }
552 void start(CScheduler& scheduler) override

Callers 2

AppInitMainFunction · 0.80
WalletTestingSetupMethod · 0.80

Calls 4

GetWalletRPCCommandsFunction · 0.85
handleRpcMethod · 0.80
emplace_backMethod · 0.45
backMethod · 0.45

Tested by 1

WalletTestingSetupMethod · 0.64