diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-12-06 22:24:33 +0100 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-12-06 23:30:43 +0100 |
commit | 961de0f4855bda890a48090c17ffd213bdab4ef0 (patch) | |
tree | da5bd19d54c286a56b52dc931698dc8925aac177 /xmrstak/net/jpsock.hpp | |
parent | 47a4d031bcc3159a298afaae6797cd19240ad0a1 (diff) | |
download | xmr-stak-961de0f4855bda890a48090c17ffd213bdab4ef0.zip xmr-stak-961de0f4855bda890a48090c17ffd213bdab4ef0.tar.gz |
fix broken pool option overwrite via CLI
fix #340
With #90 the option to overwrite the pool settings via CLI options is broken.
This pull request will allow to overwrite the options of the pool with the highest weighting.
Diffstat (limited to 'xmrstak/net/jpsock.hpp')
-rw-r--r-- | xmrstak/net/jpsock.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmrstak/net/jpsock.hpp b/xmrstak/net/jpsock.hpp index 9d276b7..ba5d1c8 100644 --- a/xmrstak/net/jpsock.hpp +++ b/xmrstak/net/jpsock.hpp @@ -59,6 +59,10 @@ public: inline const char* get_tls_fp() { return tls_fp.c_str(); } inline bool is_nicehash() { return nicehash; } + inline void set_pool_addr(const char* sAddr) { net_addr = sAddr; } + inline void set_user_login(const char* sLogin) { usr_login = sLogin; } + inline void set_user_passwd(const char* sPassword) { usr_pass = sPassword; } + bool get_pool_motd(std::string& strin); std::string&& get_call_error(); |