mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-29 23:00:33 +00:00
stratum: prevent diff/algo setting conflict
This commit is contained in:
parent
de88b7c829
commit
a6136712d2
1 changed files with 2 additions and 1 deletions
|
@ -84,7 +84,8 @@ int client_send_difficulty(YAAMP_CLIENT *client, double difficulty)
|
|||
void client_initialize_difficulty(YAAMP_CLIENT *client)
|
||||
{
|
||||
char *p = strstr(client->password, "d=");
|
||||
if(!p) return;
|
||||
char *p2 = strstr(client->password, "decred=");
|
||||
if(!p || p2) return;
|
||||
|
||||
double diff = client_normalize_difficulty(atof(p+2));
|
||||
uint64_t user_target = diff_to_target(diff);
|
||||
|
|
Loading…
Add table
Reference in a new issue