Browse Source

Test

etomic
jl777 8 years ago
parent
commit
708aa1c62a
  1. 6
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_network.c
  3. 7
      iguana/exchanges/LP_utxos.c

6
iguana/exchanges/LP_commands.c

@ -366,11 +366,11 @@ trust(pubkey, trust)\n\
} }
else else
{ {
/*if ( strcmp(method,"register") == 0 ) if ( strcmp(method,"psock") == 0 )
{ {
//printf("nonLP got (%s)\n",jprint(argjson,0)); //printf("nonLP got (%s)\n",jprint(argjson,0));
retstr = clonestr("{\"result\":\"success\",\"register\":\"received\"}"); retstr = clonestr("{\"result\":\"success\"}");
}*/ }
} }
} }
if ( retstr == 0 ) if ( retstr == 0 )

2
iguana/exchanges/LP_network.c

@ -139,7 +139,7 @@ void queue_loop(void *ignore)
} }
else else
{ {
printf("couldnt find.%u (%s) Q.%d err.%d match.%d\n",ptr->crc32,(char *)ptr->msg,LP_Qenqueued,LP_Qerrors,LP_Qfound); printf("couldnt find.%u (%s) peerind.%d Q.%d err.%d match.%d\n",ptr->crc32,(char *)ptr->msg,ptr->peerind,LP_Qenqueued,LP_Qerrors,LP_Qfound);
ptr->peerind++; ptr->peerind++;
if ( (ptr->sock= LP_peerindsock(&ptr->peerind)) < 0 ) if ( (ptr->sock= LP_peerindsock(&ptr->peerind)) < 0 )
{ {

7
iguana/exchanges/LP_utxos.c

@ -234,11 +234,14 @@ cJSON *LP_inventoryjson(cJSON *item,struct LP_utxoinfo *utxo)
{ {
struct _LP_utxoinfo u; struct _LP_utxoinfo u;
jaddstr(item,"method","utxo"); jaddstr(item,"method","utxo");
if ( utxo == 0 )
return(item);
if ( LP_ismine(utxo) > 0 ) if ( LP_ismine(utxo) > 0 )
{
jaddnum(item,"session",LP_sessionid); jaddnum(item,"session",LP_sessionid);
printf("sessionid.%u\n",LP_sessionid);
}
else jaddnum(item,"session",utxo->T.sessionid); else jaddnum(item,"session",utxo->T.sessionid);
if ( utxo == 0 )
return(item);
if ( utxo->gui[0] != 0 ) if ( utxo->gui[0] != 0 )
jaddstr(item,"gui",utxo->gui); jaddstr(item,"gui",utxo->gui);
jaddstr(item,"coin",utxo->coin); jaddstr(item,"coin",utxo->coin);

Loading…
Cancel
Save