|
|
@ -5606,6 +5606,11 @@ test_blocksolve(const stratum_instance_t *client, const workbase_t *wb, const uc |
|
|
|
DL_APPEND(sdata->block_solves, block_ckmsg); |
|
|
|
DL_APPEND(sdata->block_solves, block_ckmsg); |
|
|
|
mutex_unlock(&sdata->block_lock); |
|
|
|
mutex_unlock(&sdata->block_lock); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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); |
|
|
|
ckdbq_add(ckp, ID_BLOCK, val); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|