From 0e68d49b404f78891a9090f1438eed016fd370cf Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 29 Apr 2014 18:39:03 +1000 Subject: [PATCH] Only allow one connected instance per enonce1 --- src/stratifier.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 68cd846a..5b7d1738 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -429,7 +429,9 @@ static bool sessionid_exists(const char *sessionid, int id) if (instance->id == id) continue; if (instance->enonce1_64 == session64) { - ret = true; + /* Only allow one connected instance per enonce1 */ + if (instance->disconnected) + ret = true; break; } }