From 56d66496460fb21888ee9f1ce7bb11efbf29f402 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 27 May 2014 18:19:09 +1000 Subject: [PATCH] Fix jobid being wrong on proxy reconnect --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index c028ff80..bbc617b0 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -377,7 +377,8 @@ static void add_base(ckpool_t *ckp, workbase_t *wb, bool *new_block) wb->logdir = ckalloc(len); ck_wlock(&workbase_lock); - wb->id = workbase_id++; + if (!ckp->proxy) + wb->id = workbase_id++; if (strncmp(wb->prevhash, lasthash, 64)) { *new_block = true;