diff --git a/src/base/net/stratum/DaemonClient.cpp b/src/base/net/stratum/DaemonClient.cpp index 6f66dd7c9..4e311abfe 100644 --- a/src/base/net/stratum/DaemonClient.cpp +++ b/src/base/net/stratum/DaemonClient.cpp @@ -180,6 +180,7 @@ int64_t xmrig::DaemonClient::submit(const JobResult &result) std::map headers; headers.insert({"X-Hash-Difficulty", std::to_string(result.actualDiff())}); + return rpcSend(doc, headers); } @@ -558,8 +559,10 @@ int64_t xmrig::DaemonClient::getBlockTemplate() int64_t xmrig::DaemonClient::rpcSend(const rapidjson::Document &doc, const std::map &headers) { FetchRequest req(HTTP_POST, m_pool.host(), m_pool.port(), kJsonRPC, doc, m_pool.isTLS(), isQuiet()); - for (const auto &header: headers) + for (const auto &header : headers) { req.headers.insert(header); + } + fetch(tag(), std::move(req), m_httpListener); return m_sequence++;