From ded126d599cd914337661a0c4591ad6a34186cd3 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 4 Aug 2016 15:40:03 +1000 Subject: [PATCH] Relax the array size check in shares to at least large enough --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 4b0266b9..a037da91 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -5506,7 +5506,7 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg, *err_val = JSON_ERR(err); goto out; } - if (unlikely(json_array_size(params_val) != 5)) { + if (unlikely(json_array_size(params_val) < 5)) { err = SE_INVALID_SIZE; *err_val = JSON_ERR(err); goto out;