mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-26 17:51:45 +01:00
stratum: don't attempt to recv authorize result
Previous implementation would miss the first mining.set_difficulty message. We need to find a better way to manage result messages.
This commit is contained in:
parent
6c3de26821
commit
5a94acff09
@ -249,16 +249,17 @@ int auth_to_stratum(int socket, const char * username)
|
||||
sprintf(authorize_msg, "{\"id\": %d, \"method\": \"mining.authorize\", \"params\": [\"%s\", \"x\"]}\n",
|
||||
send_uid++, username);
|
||||
ESP_LOGI(TAG, "-> %s", authorize_msg);
|
||||
|
||||
|
||||
write(socket, authorize_msg, strlen(authorize_msg));
|
||||
/*
|
||||
// TODO: Parse authorize results
|
||||
char * line;
|
||||
line = receive_jsonrpc_line(socket);
|
||||
|
||||
ESP_LOGI(TAG, "Received result %s", line);
|
||||
|
||||
// TODO: Parse authorize results
|
||||
|
||||
free(line);
|
||||
*/
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user