From 29adb102955136391a3cb897ed44a45664f1ada1 Mon Sep 17 00:00:00 2001 From: cryptonote-social Date: Tue, 22 Dec 2020 11:32:15 -0800 Subject: [PATCH] bump up max limit on request size and change Error return type to interface{} since it can sometimes be a single string --- stratum/client/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stratum/client/client.go b/stratum/client/client.go index 6b274f2..c269b55 100644 --- a/stratum/client/client.go +++ b/stratum/client/client.go @@ -22,7 +22,7 @@ const ( SUBMIT_WORK_JSON_ID = 999 CONNECT_JSON_ID = 666 - MAX_REQUEST_SIZE = 10000 // Max # of bytes we will read per request + MAX_REQUEST_SIZE = 50000 // Max # of bytes we will read per request NO_WALLET_SPECIFIED_WARNING_CODE = 2 ) @@ -83,7 +83,7 @@ type SubmitWorkResponse struct { Method string `json:"method"` Job *MultiClientJob `json:"params"` Result *SubmitWorkResult - Error map[string]interface{} `json:"error"` + Error interface{} `json:"error"` } type Client struct {