diff --git a/stratum/client.cpp b/stratum/client.cpp index 3c2bd94..bfc9c32 100644 --- a/stratum/client.cpp +++ b/stratum/client.cpp @@ -319,8 +319,9 @@ bool client_update_block(YAAMP_CLIENT *client, json_value *json_params) coind->newblock = true; coind->notreportingcounter = 0; - if (!strcmp("DCR", coind->rpcencoding)) { - usleep(300*YAAMP_MS); + if (!strcmp("DCR", coind->rpcencoding) || !strcmp("LBC", coind->rpcencoding)) + { + usleep(300 * YAAMP_MS); } block_confirm(coind->id, hash); diff --git a/stratum/client_submit.cpp b/stratum/client_submit.cpp index 054f83f..fc48ffe 100644 --- a/stratum/client_submit.cpp +++ b/stratum/client_submit.cpp @@ -281,8 +281,8 @@ static void client_do_submit(YAAMP_CLIENT *client, YAAMP_JOB *job, YAAMP_JOB_VAL target_to_diff(coin_target), target_to_diff(hash_int), hash1, submitvalues->hash_be, templ->has_segwit_txs); - if(!strcmp("DCR", coind->rpcencoding)) { - // delay between dcrd and dcrwallet + if(!strcmp("DCR", coind->rpcencoding) ||!strcmp("LBC", coind->rpcencoding)) { + // delay between dcrd/lbcd and dcrwallet/lbcwallet sleep(1); } diff --git a/stratum/coind_template.cpp b/stratum/coind_template.cpp index 7109038..c65e104 100644 --- a/stratum/coind_template.cpp +++ b/stratum/coind_template.cpp @@ -239,8 +239,8 @@ YAAMP_JOB_TEMPLATE *coind_create_template(YAAMP_COIND *coind) json_value *json = rpc_call(&coind->rpc, "getblocktemplate", params); if(!json || json_is_null(json)) { - // coind_error() reset auto_ready, and DCR gbt can fail - if (strcmp(coind->rpcencoding, "DCR") == 0) + // coind_error() reset auto_ready, and DCR/LBC gbt can fail + if (!strcmp(coind->rpcencoding, "DCR") || !strcmp(coind->rpcencoding, "LBC")) debuglog("decred getblocktemplate failed\n"); else coind_error(coind, "getblocktemplate");