bump up max limit on request size and change Error return type to interface{} since it can sometimes be a single string

This commit is contained in:
cryptonote-social 2020-12-22 11:32:15 -08:00
parent 6f8bed0f31
commit 29adb10295

View File

@ -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 {