mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
Correct Segwit check
This commit is contained in:
parent
108bba1e31
commit
2f1230c0dd
1 changed files with 1 additions and 2 deletions
|
@ -234,8 +234,7 @@ YAAMP_JOB_TEMPLATE *coind_create_template(YAAMP_COIND *coind)
|
||||||
return coind_create_template_memorypool(coind);
|
return coind_create_template_memorypool(coind);
|
||||||
|
|
||||||
char params[512] = "[{}]";
|
char params[512] = "[{}]";
|
||||||
if(!strcmp(coind->symbol, "PPC")) strcpy(params, "[]");
|
if(g_stratum_segwit) strcpy(params, "[{\"rules\":[\"segwit\"]}]");
|
||||||
else if(g_stratum_segwit) strcpy(params, "[{\"rules\":[\"segwit\"]}]");
|
|
||||||
|
|
||||||
json_value *json = rpc_call(&coind->rpc, "getblocktemplate", params);
|
json_value *json = rpc_call(&coind->rpc, "getblocktemplate", params);
|
||||||
if(!json || json_is_null(json))
|
if(!json || json_is_null(json))
|
||||||
|
|
Loading…
Add table
Reference in a new issue