This commit is contained in:
jl777
2018-09-04 18:39:13 -11:00
parent dcfa8da683
commit 90ea8770c2

View File

@@ -317,7 +317,7 @@ cJSON *get_komodocli(char **retstrp,char *acname,char *method,char *arg0,char *a
*retstrp = 0;
if ( (jsonstr= filestr(&fsize,fname)) != 0 )
{
fprintf(stderr,"%s -> jsonstr.(%s)\n",cmdstr,jsonstr);
//fprintf(stderr,"%s -> jsonstr.(%s)\n",cmdstr,jsonstr);
if ( (retjson= cJSON_Parse(jsonstr)) == 0 )
*retstrp = jsonstr;
else free(jsonstr);
@@ -330,7 +330,7 @@ void komodobroadcast(char *acname,cJSON *hexjson)
char *hexstr,*retstr; cJSON *retjson;
if ( (hexstr= jstr(hexjson,"hex")) != 0 )
{
fprintf(stderr,"hexstr.(%s)\n",hexstr);
//fprintf(stderr,"hexstr.(%s)\n",hexstr);
if ( (retjson= get_komodocli(&retstr,acname,"sendrawtransaction",hexstr,"","")) != 0 )
free_json(retjson);
else if ( retstr != 0 )