Added ENV support for "user", "pass" and "rig-id" fields.
This commit is contained in:
parent
356e666e61
commit
5bd6a1c028
6 changed files with 33 additions and 13 deletions
|
@ -56,11 +56,12 @@ protected:
|
|||
inline int64_t sequence() const override { return m_sequence; }
|
||||
inline void setAlgo(const Algorithm &algo) override { m_pool.setAlgo(algo); }
|
||||
inline void setEnabled(bool enabled) override { m_enabled = enabled; }
|
||||
inline void setPool(const Pool &pool) override { if (pool.isValid()) { m_pool = pool; } }
|
||||
inline void setQuiet(bool quiet) override { m_quiet = quiet; }
|
||||
inline void setRetries(int retries) override { m_retries = retries; }
|
||||
inline void setRetryPause(uint64_t ms) override { m_retryPause = ms; }
|
||||
|
||||
void setPool(const Pool &pool) override;
|
||||
|
||||
protected:
|
||||
enum SocketState {
|
||||
UnconnectedState,
|
||||
|
@ -95,6 +96,9 @@ protected:
|
|||
std::map<int64_t, SendResult> m_callbacks;
|
||||
std::map<int64_t, SubmitResult> m_results;
|
||||
String m_ip;
|
||||
String m_password;
|
||||
String m_rigId;
|
||||
String m_user;
|
||||
uint64_t m_retryPause = 5000;
|
||||
|
||||
static int64_t m_sequence;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue