From a9fa1947c68d648d688d91d4acd6ec8a9ec9439c Mon Sep 17 00:00:00 2001 From: sowle Date: Mon, 1 Apr 2019 14:52:06 +0300 Subject: [PATCH] GPU mining fixed --- contrib/ethereum/libethash/ethash/version.h | 2 +- src/stratum/stratum_server.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/ethereum/libethash/ethash/version.h b/contrib/ethereum/libethash/ethash/version.h index ba45c734..f0372b0d 100644 --- a/contrib/ethereum/libethash/ethash/version.h +++ b/contrib/ethereum/libethash/ethash/version.h @@ -6,7 +6,7 @@ #pragma once /** The ethash library version. */ -#define ETHASH_VERSION "0.5.0-alpha.0" +#define ETHASH_VERSION "0.4.3" #ifdef __cplusplus namespace ethash diff --git a/src/stratum/stratum_server.cpp b/src/stratum/stratum_server.cpp index 765c8f38..cc5f0390 100644 --- a/src/stratum/stratum_server.cpp +++ b/src/stratum/stratum_server.cpp @@ -437,7 +437,7 @@ namespace difficulty_to_boundary_long(worker_difficulty, target_boundary); ethash_hash256 seed_hash = ethash_calculate_epoch_seed(ethash_height_to_epoch(m_block_template_height)); - return R"("result":[")" + pod_to_net_format(m_block_template_ethash) + R"(",")" + pod_to_net_format(seed_hash) + R"(",")" + pod_to_net_format_reverse(target_boundary) + R"("])"; + return R"("result":[")" + pod_to_net_format(m_block_template_ethash) + R"(",")" + pod_to_net_format(seed_hash) + R"(",")" + pod_to_net_format_reverse(target_boundary) + R"(",")" + pod_to_net_format_reverse(m_block_template_height) + R"("])"; } void update_work(protocol_handler_t* p_ph)