|
@ -329,7 +329,7 @@ char *stats_JSON(cJSON *argjson,char *remoteaddr,uint16_t port) // from rpc port |
|
|
peer->numpeers = otherpeers; |
|
|
peer->numpeers = otherpeers; |
|
|
if ( (othernumutxos= jint(argjson,"numutxos")) > peer->numutxos ) |
|
|
if ( (othernumutxos= jint(argjson,"numutxos")) > peer->numutxos ) |
|
|
{ |
|
|
{ |
|
|
printf("change.(%s) numutxos.%d -> %d mynumutxos.%d\n",peer->ipaddr,peer->numutxos,othernumutxos,LP_mypeer->numutxos); |
|
|
printf("change.(%s) numutxos.%d -> %d mynumutxos.%d\n",peer->ipaddr,peer->numutxos,othernumutxos,LP_mypeer != 0 ? LP_mypeer->numutxos:0); |
|
|
peer->numutxos = othernumutxos; |
|
|
peer->numutxos = othernumutxos; |
|
|
} |
|
|
} |
|
|
//printf("peer.(%s) found (%d %d) (%d %d) (%s)\n",peer->ipaddr,peer->numpeers,peer->numutxos,otherpeers,othernumutxos,jprint(argjson,0));
|
|
|
//printf("peer.(%s) found (%d %d) (%d %d) (%s)\n",peer->ipaddr,peer->numpeers,peer->numutxos,otherpeers,othernumutxos,jprint(argjson,0));
|
|
|