Test
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user