From a2b0b7d4232e8cfd24bd2db36dbbef08fef0e101 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Tue, 15 Aug 2017 16:23:21 +0200 Subject: [PATCH] stratum: do not store anonymous invalid shares --- stratum/share.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stratum/share.cpp b/stratum/share.cpp index db56544..ba459ed 100644 --- a/stratum/share.cpp +++ b/stratum/share.cpp @@ -126,7 +126,7 @@ void share_write(YAAMP_DB *db) for(CLI li = g_list_worker.first; li; li = li->next) { YAAMP_WORKER *worker = (YAAMP_WORKER *)li->data; - if(worker->deleted) continue; + if(worker->deleted || !worker->workerid) continue; if(count) strcat(buffer, ","); sprintf(buffer+strlen(buffer), "(%d, %d, %d, %d, %d, %d, %d, %f, %f, %d, '%s', %d)",