From fb64b572b0e3b7b10699d608abdcf1ec025efac5 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 24 Dec 2016 10:47:14 +1100 Subject: [PATCH] Upstream block submit before it's confirmed as well in remote trusted mode. --- src/stratifier.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 4ff23962..9360457e 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -5606,7 +5606,12 @@ test_blocksolve(const stratum_instance_t *client, const workbase_t *wb, const uc DL_APPEND(sdata->block_solves, block_ckmsg); mutex_unlock(&sdata->block_lock); - ckdbq_add(ckp, ID_BLOCK, val); + if (ckp->remote) { + json_set_string(val, "name", ckp->name); + upstream_msgtype(ckp, val, SM_BLOCK); + json_decref(val); + } else + ckdbq_add(ckp, ID_BLOCK, val); } /* Needs to be entered with client holding a ref count. */