mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-21 02:19:47 +00:00
stratum: clear unauthorized workers
This commit is contained in:
parent
c0b5cad0be
commit
68bd3702e9
1 changed files with 6 additions and 0 deletions
|
@ -199,8 +199,14 @@ bool client_authorize(YAAMP_CLIENT *client, json_value *json_params)
|
|||
#ifdef NO_EXCHANGE
|
||||
// when auto exchange is disabled, only authorize good wallet address...
|
||||
if (!client_validate_user_address(client)) {
|
||||
|
||||
clientlog(client, "bad mining address %s", client->username);
|
||||
client_send_result(client, "false");
|
||||
|
||||
CommonLock(&g_db_mutex);
|
||||
db_clear_worker(g_db, client);
|
||||
CommonUnlock(&g_db_mutex);
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue