Browse Source

Test

etomic
jl777 8 years ago
parent
commit
3b11e8a105
  1. 3
      iguana/exchanges/LP_commands.c
  2. 1
      iguana/exchanges/LP_utxos.c

3
iguana/exchanges/LP_commands.c

@ -237,7 +237,7 @@ char *stats_JSON(int32_t pubsock,cJSON *argjson,char *remoteaddr,uint16_t port)
char *method,*ipaddr,*userpass,*base,*rel,*coin,*retstr = 0; uint16_t argport,pushport,subport; int32_t otherpeers,othernumutxos; struct LP_peerinfo *peer; cJSON *retjson; struct iguana_info *ptr;
if ( (method= jstr(argjson,"method")) == 0 )
{
printf("(%s)\n",jprint(argjson,0));
printf("stats_JSON no method: (%s)\n",jprint(argjson,0));
return(clonestr("{\"error\":\"need method in request\"}"));
}
else if ( strcmp(method,"help") == 0 )
@ -266,7 +266,6 @@ forward(pubkey,method2,<argjson>)\n\
forward(pubkey,method2=publish,<argjson>)\n\
forwardhex(pubkey,hex)\n\
\"}"));
printf("CMD.(%s)\n",jprint(argjson,0));
base = jstr(argjson,"base");
rel = jstr(argjson,"rel");
if ( USERPASS[0] != 0 && strcmp(remoteaddr,"127.0.0.1") == 0 && port != 0 )

1
iguana/exchanges/LP_utxos.c

@ -203,6 +203,7 @@ int32_t LP_utxopurge(int32_t allutxos)
cJSON *LP_inventoryjson(cJSON *item,struct LP_utxoinfo *utxo)
{
struct _LP_utxoinfo u;
jaddstr(item,"method","notified");
jaddstr(item,"coin",utxo->coin);
jaddnum(item,"now",time(NULL));
jaddstr(item,"address",utxo->coinaddr);

Loading…
Cancel
Save