From 03ba50a3e294a15ca2f53a585b9c8b56db88d7f0 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 21 Aug 2014 12:14:28 +1000 Subject: [PATCH] Workbase_id should be updated even in proxy mode or diff will only change once --- src/stratifier.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index fbb4adb8..f8574ffc 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -522,8 +522,7 @@ static void add_base(ckpool_t *ckp, workbase_t *wb, bool *new_block) wb->logdir = ckalloc(len); ck_wlock(&workbase_lock); - if (!ckp->proxy) - wb->id = workbase_id++; + wb->id = workbase_id++; if (strncmp(wb->prevhash, lasthash, 64)) { *new_block = true;