From 9bec1521b864029b8218d7c3ce99d7a5f583820a Mon Sep 17 00:00:00 2001 From: SChernykh Date: Tue, 4 Jan 2022 23:54:59 +0100 Subject: [PATCH] Fix for short responses from some Raptoreum pools --- src/base/net/stratum/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/net/stratum/Client.cpp b/src/base/net/stratum/Client.cpp index db6ceca38..c9cdd1113 100644 --- a/src/base/net/stratum/Client.cpp +++ b/src/base/net/stratum/Client.cpp @@ -660,7 +660,7 @@ void xmrig::Client::parse(char *line, size_t len) LOG_DEBUG("[%s] received (%d bytes): \"%.*s\"", url(), len, static_cast(len), line); - if (len < 32 || line[0] != '{') { + if (len < 22 || line[0] != '{') { if (!isQuiet()) { LOG_ERR("%s " RED("JSON decode failed"), tag()); }