From 5611ae9a30f729f37f46e1aea4fdf9a42e2e2cee Mon Sep 17 00:00:00 2001 From: SChernykh Date: Tue, 25 Aug 2020 16:17:48 +0200 Subject: [PATCH] Fixed self-select login sequence In self-select mode, we only have pool wallet right after login. --- src/base/net/stratum/Job.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/net/stratum/Job.h b/src/base/net/stratum/Job.h index ea52be74..8341439a 100644 --- a/src/base/net/stratum/Job.h +++ b/src/base/net/stratum/Job.h @@ -65,7 +65,7 @@ public: void setDiff(uint64_t diff); inline bool isNicehash() const { return m_nicehash; } - inline bool isValid() const { return m_size > 0 && m_diff > 0; } + inline bool isValid() const { return (m_size > 0 && m_diff > 0) || !m_poolWallet.isEmpty(); } inline bool setId(const char *id) { return m_id = id; } inline const Algorithm &algorithm() const { return m_algorithm; } inline const Buffer &seed() const { return m_seed; }