From e326d36be5f09ac6dcfb1acbb6209faa870e94f7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 22 Sep 2014 21:07:17 +1000 Subject: [PATCH] Only use 4 bytes for enonce1 in proxy mode when we have 8 or more bytes for nonce2len --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 0e697a18..d68bbdac 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -766,7 +766,7 @@ static bool update_subscribe(ckpool_t *ckp) proxy_base.enonce1constlen = strlen(proxy_base.enonce1) / 2; hex2bin(proxy_base.enonce1bin, proxy_base.enonce1, proxy_base.enonce1constlen); proxy_base.nonce2len = json_integer_value(json_object_get(val, "nonce2len")); - if (proxy_base.nonce2len > 5) + if (proxy_base.nonce2len > 7) proxy_base.enonce1varlen = 4; else proxy_base.enonce1varlen = 2;