wallet2_api: implement runtime proxy configuration
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
|
||||
#include "wallet/api/wallet2_api.h"
|
||||
#include "net/http_client.h"
|
||||
#include "net/http.h"
|
||||
#include <string>
|
||||
|
||||
namespace Monero {
|
||||
@@ -92,11 +92,12 @@ public:
|
||||
bool startMining(const std::string &address, uint32_t threads = 1, bool background_mining = false, bool ignore_battery = true) override;
|
||||
bool stopMining() override;
|
||||
std::string resolveOpenAlias(const std::string &address, bool &dnssec_valid) const override;
|
||||
bool setProxy(const std::string &address) override;
|
||||
|
||||
private:
|
||||
WalletManagerImpl() {}
|
||||
friend struct WalletManagerFactory;
|
||||
epee::net_utils::http::http_simple_client m_http_client;
|
||||
net::http::client m_http_client;
|
||||
std::string m_errorString;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user