Stratum: disconnect miners when not connected to P2Pool network

This commit is contained in:
SChernykh
2024-10-18 20:13:54 +02:00
parent fb78eb615b
commit 02006e1b50
3 changed files with 35 additions and 1 deletions
+3
View File
@@ -186,6 +186,8 @@ public:
void check_for_updates(bool forced = false) const;
bool disconnected() const { return m_seenGoodPeers && (m_numConnections == 0); };
private:
[[nodiscard]] const char* get_log_category() const override;
@@ -244,6 +246,7 @@ private:
uint64_t m_lastSeen;
};
std::atomic<bool> m_seenGoodPeers;
std::vector<Peer> m_peerList;
std::vector<Peer> m_peerListMonero;
std::atomic<uint64_t> m_peerListLastSaved;