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:
johnny9 2023-05-30 08:38:15 -04:00
parent 6c3de26821
commit 5a94acff09

View File

@ -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;
}