Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/command.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
* command classes that only depend on RPC arguments. | * command classes that only depend on RPC arguments. | ||||
*/ | */ | ||||
class RPCCommandWithArgsContext : public RPCCommand { | class RPCCommandWithArgsContext : public RPCCommand { | ||||
public: | public: | ||||
RPCCommandWithArgsContext(const std::string &nameIn) : RPCCommand(nameIn) {} | RPCCommandWithArgsContext(const std::string &nameIn) : RPCCommand(nameIn) {} | ||||
virtual UniValue Execute(const UniValue &args) const = 0; | virtual UniValue Execute(const UniValue &args) const = 0; | ||||
UniValue Execute(const JSONRPCRequest &request) const final; | UniValue Execute(const JSONRPCRequest &request) const final override; | ||||
}; | }; | ||||
#endif // BITCOIN_RPC_COMMAND_H | #endif // BITCOIN_RPC_COMMAND_H |