StratumServer: added scoring system for clients

Ban clients only after a few bad shares without good shares compensating them.
This commit is contained in:
SChernykh
2022-08-22 11:07:11 +02:00
parent 42f7e6f486
commit cc60ab3d63
2 changed files with 14 additions and 1 deletions

View File

@@ -78,6 +78,8 @@ public:
difficulty_type m_customDiff;
difficulty_type m_autoDiff;
char m_customUser[32];
int32_t m_score;
};
bool on_login(StratumClient* client, uint32_t id, const char* login);