From 035f04ebba112762491a0068b5ad433a86c56e6d Mon Sep 17 00:00:00 2001 From: Intel Date: Mon, 5 May 2014 15:42:22 -0400 Subject: [PATCH] Fix authentication for dumb miners --- src/server/poolserver/Stratum/Client.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/poolserver/Stratum/Client.cpp b/src/server/poolserver/Stratum/Client.cpp index ccf837a..e8b4926 100644 --- a/src/server/poolserver/Stratum/Client.cpp +++ b/src/server/poolserver/Stratum/Client.cpp @@ -270,7 +270,7 @@ namespace Stratum result.Add(int64(4)); JSON response; - response["id"] = msg["id"].GetInt(); + response["id"] = msg["id"]; response["result"] = result; response["error"]; @@ -296,13 +296,13 @@ namespace Stratum SetDifficulty(_minDiff); JSON response; - response["id"] = msg["id"].GetInt(); + response["id"] = msg["id"]; response["error"]; response["result"] = true; SendMessage(response); } else { JSON response; - response["id"] = msg["id"].GetInt(); + response["id"] = msg["id"]; response["error"].Add(int64(20)); response["error"].Add("Authentication failed"); response["error"].Add(JSON());