|
@ -38,7 +38,7 @@ char *stats_JSON(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,char *r |
|
|
method = jstr(argjson,"method"); |
|
|
method = jstr(argjson,"method"); |
|
|
if ( method != 0 && (strcmp(method,"addr_unspents") == 0 || strcmp(method,"uitem") == 0 || strcmp(method,"postutxos") == 0) ) |
|
|
if ( method != 0 && (strcmp(method,"addr_unspents") == 0 || strcmp(method,"uitem") == 0 || strcmp(method,"postutxos") == 0) ) |
|
|
return(0); |
|
|
return(0); |
|
|
//printf("stats_JSON %s\n",method);
|
|
|
printf("stats_JSON.(%s)\n",jprint(argjson,0)); |
|
|
/*if ( (ipaddr= jstr(argjson,"ipaddr")) != 0 && (argport= juint(argjson,"port")) != 0 && (method == 0 || strcmp(method,"electrum") != 0) )
|
|
|
/*if ( (ipaddr= jstr(argjson,"ipaddr")) != 0 && (argport= juint(argjson,"port")) != 0 && (method == 0 || strcmp(method,"electrum") != 0) )
|
|
|
{ |
|
|
{ |
|
|
if ( strcmp(ipaddr,"127.0.0.1") != 0 && argport >= 1000 ) |
|
|
if ( strcmp(ipaddr,"127.0.0.1") != 0 && argport >= 1000 ) |
|
|