diff --git a/src/wallet/wallet_rpc_server.h b/src/wallet/wallet_rpc_server.h index 2f50e99c..a424e103 100644 --- a/src/wallet/wallet_rpc_server.h +++ b/src/wallet/wallet_rpc_server.h @@ -57,7 +57,9 @@ namespace tools { wallet_provider_simple(std::shared_ptr wallet_ptr) : m_wallet_ptr(wallet_ptr) {} - virtual std::shared_ptr get_wallet() + + // interface i_wallet_provider + virtual std::shared_ptr get_wallet() override { return m_wallet_ptr; } @@ -90,13 +92,16 @@ namespace tools bool run(bool do_mint, bool offline_mode, const currency::account_public_address& miner_address); virtual bool handle_http_request(const epee::net_utils::http::http_request_info& query_info, epee::net_utils::http::http_response_info& response_info, - connection_context& conn_context) { + connection_context& conn_context) + { bool call_found = false; return this->handle_http_request(query_info, response_info, conn_context, call_found, epee::net_utils::http::i_chain_handler::m_empty_documentation); } + // interface i_chain_handler virtual bool handle_http_request(const epee::net_utils::http::http_request_info& query_info, epee::net_utils::http::http_response_info& response_info, - epee::net_utils::connection_context_base& conn_context, bool& call_found, documentation& docs = epee::net_utils::http::i_chain_handler::m_empty_documentation); + epee::net_utils::connection_context_base& conn_context, bool& call_found, documentation& docs = epee::net_utils::http::i_chain_handler::m_empty_documentation) override; + void set_jwt_secret(const std::string& jwt); const std::string& get_jwt_secret();