Browse Source

Test

etomic
jl777 8 years ago
parent
commit
b53513a41b
  1. 4
      iguana/exchanges/LP_unspents.c

4
iguana/exchanges/LP_unspents.c

@ -523,7 +523,11 @@ char *stats_JSON(cJSON *argjson,char *remoteaddr,uint16_t port)
if ( (otherpeers= jint(argjson,"numpeers")) > peer->numpeers )
peer->numpeers = otherpeers;
if ( (othernumutxos= jint(argjson,"numutxos")) > peer->numutxos )
{
printf("change.(%s) numutxos.%d -> %d\n",peer->ipaddr,peer->numutxos,othernumutxos);
peer->numutxos = othernumutxos;
}
printf("peer.(%s) found (%d %d) (%d %d)\n",peer->ipaddr,peer->numpeers,peer->numutxos,otherpeers,othernumutxos);
} else LP_addpeer(LP_mypeer,LP_mypubsock,ipaddr,argport,pushport,subport,jdouble(argjson,"profit"),jint(argjson,"numpeers"),jint(argjson,"numutxos"));
if ( strcmp(method,"getpeers") == 0 )
retstr = LP_peers();

Loading…
Cancel
Save