|
@ -26,7 +26,7 @@ char *sglue(GLUEARGS,char *agent,char *method) |
|
|
char *retstr,*rpcretstr,*walletstr,checkstr[64],dcheckstr[64]; cJSON *retjson,*tmpjson,*result,*error,*wallet; int32_t i,j,len; int64_t val; double dval; |
|
|
char *retstr,*rpcretstr,*walletstr,checkstr[64],dcheckstr[64]; cJSON *retjson,*tmpjson,*result,*error,*wallet; int32_t i,j,len; int64_t val; double dval; |
|
|
if ( json == 0 ) |
|
|
if ( json == 0 ) |
|
|
json = cJSON_CreateObject(); |
|
|
json = cJSON_CreateObject(); |
|
|
//printf("sglue.(%s)\n",jprint(json,0));
|
|
|
printf("sglue.(%s)\n",jprint(json,0)); |
|
|
jaddstr(json,"agent",agent); |
|
|
jaddstr(json,"agent",agent); |
|
|
jaddstr(json,"method",method); |
|
|
jaddstr(json,"method",method); |
|
|
jaddstr(json,"coin",coin->symbol); |
|
|
jaddstr(json,"coin",coin->symbol); |
|
@ -1006,7 +1006,7 @@ char *SuperNET_rpcparse(struct supernet_info *myinfo,char *retbuf,int32_t bufsiz |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
//printf("after urlconv.(%s) argjson.(%s)\n",jprint(json,0),jprint(argjson,0));
|
|
|
printf("after urlconv.(%s) argjson.(%s)\n",jprint(json,0),jprint(argjson,0)); |
|
|
if ( jstr(argjson,"method") == 0 ) |
|
|
if ( jstr(argjson,"method") == 0 ) |
|
|
{ |
|
|
{ |
|
|
free_json(argjson); |
|
|
free_json(argjson); |
|
|