Correct Segwit check

This commit is contained in:
Ralph 2020-01-27 18:13:43 -05:00 committed by GitHub
parent 108bba1e31
commit 2f1230c0dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))