From 0c542e839578474f93f543201d1228debb99d5eb Mon Sep 17 00:00:00 2001 From: opensourcerulez Date: Sun, 8 Jul 2018 14:50:53 +0300 Subject: [PATCH] stratum: handle XSH multialgo pow_hash special field (#281) --- stratum/share.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stratum/share.cpp b/stratum/share.cpp index a8a4f82..14c4332 100644 --- a/stratum/share.cpp +++ b/stratum/share.cpp @@ -261,8 +261,10 @@ bool block_confirm(int coinid, const char *blockhash) } const char *h1 = json_get_string(json_res, "pow_hash"); // DGB, MYR, J const char *h2 = json_get_string(json_res, "mined_hash"); // XVG + const char *h3 = json_get_string(json_res, "phash"); // XSH if (h1) snprintf(hash, 161, "%s", h1); else if (h2) snprintf(hash, 161, "%s", h2); + else if (h3) snprintf(hash, 161, "%s", h3); //debuglog("%s: getblock %s -> pow %s\n", __func__, blockhash, hash); json_value_free(json); break;