Browse Source

stratum: yaamp answer to extranonce subscribe lately

Fix for the extranonce feature, can also make the miner more stable
master
Tanguy Pruvot 10 years ago
parent
commit
1dfbe6dfb5
  1. 4
      ccminer.cpp

4
ccminer.cpp

@ -1518,6 +1518,10 @@ static bool stratum_handle_response(char *buf)
if (!id_val || json_is_null(id_val) || !res_val) if (!id_val || json_is_null(id_val) || !res_val)
goto out; goto out;
// ignore subscribe late answer (yaamp)
if (json_integer_value(id_val) < 4)
goto out;
share_result(json_is_true(res_val), share_result(json_is_true(res_val),
err_val ? json_string_value(json_array_get(err_val, 1)) : NULL); err_val ? json_string_value(json_array_get(err_val, 1)) : NULL);

Loading…
Cancel
Save