From f7018873f5e9893a7e8ee9a71d5242d7f112c145 Mon Sep 17 00:00:00 2001 From: Lavajumper Date: Wed, 26 Dec 2018 10:58:12 -0500 Subject: [PATCH] stratum: fix for auxpow result:null on success Some auxpow coins return error:null, result:null on success and are not reported correctly. I have not found a coin which returns this on failure. --- stratum/coind_submit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stratum/coind_submit.cpp b/stratum/coind_submit.cpp index f1f8b6f..6089494 100644 --- a/stratum/coind_submit.cpp +++ b/stratum/coind_submit.cpp @@ -140,6 +140,9 @@ bool coind_submitgetauxblock(YAAMP_COIND *coind, const char *hash, const char *b json_value *json_result = json_get_object(json, "result"); bool b = json_result && json_result->type == json_boolean && json_result->u.boolean; + // some auxpow coins return error:null, result: null on success + if(!b) + b=json_result && json_result->type == json_null; json_value_free(json); return b;