1
0
Fork 0
forked from lthn/blockchain

wallet: minor improvements (override keyword) 2

This commit is contained in:
sowle 2024-11-09 19:44:28 +01:00
parent fead9075b6
commit d28a0e1b13
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -57,7 +57,9 @@ namespace tools
{
wallet_provider_simple(std::shared_ptr<wallet2> wallet_ptr) : m_wallet_ptr(wallet_ptr)
{}
virtual std::shared_ptr<wallet2> get_wallet()
// interface i_wallet_provider
virtual std::shared_ptr<wallet2> 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();