From 1dfbe6dfb5ff328ba8f1d31f176531b464579d82 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Mon, 24 Nov 2014 19:57:46 +0100 Subject: [PATCH] stratum: yaamp answer to extranonce subscribe lately Fix for the extranonce feature, can also make the miner more stable --- ccminer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ccminer.cpp b/ccminer.cpp index 051f70e..196f746 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -1518,6 +1518,10 @@ static bool stratum_handle_response(char *buf) if (!id_val || json_is_null(id_val) || !res_val) goto out; + // ignore subscribe late answer (yaamp) + if (json_integer_value(id_val) < 4) + goto out; + share_result(json_is_true(res_val), err_val ? json_string_value(json_array_get(err_val, 1)) : NULL);