jl777 7 years ago
parent
commit
fb98099b49
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 4
      iguana/exchanges/LP_network.c
  3. 2
      iguana/exchanges/LP_utxos.c

2
iguana/exchanges/LP_nativeDEX.c

@ -202,7 +202,7 @@ char *LP_process_message(void *ctx,char *typestr,char *myipaddr,int32_t pubsock,
if ( jsonstr != 0 && argjson != 0 ) if ( jsonstr != 0 && argjson != 0 )
{ {
len = (int32_t)strlen(jsonstr) + 1; len = (int32_t)strlen(jsonstr) + 1;
printf("%s\n",jstr(argjson,"method")); fprintf(stderr,"%s ",jstr(argjson,"method"));
if ( (retstr= LP_command_process(ctx,myipaddr,pubsock,argjson,&((uint8_t *)ptr)[len],recvlen - len)) != 0 ) if ( (retstr= LP_command_process(ctx,myipaddr,pubsock,argjson,&((uint8_t *)ptr)[len],recvlen - len)) != 0 )
{ {
} }

4
iguana/exchanges/LP_network.c

@ -157,7 +157,7 @@ void queue_loop(void *ignore)
{ {
if ( (sentbytes= nn_send(ptr->sock,ptr->msg,ptr->msglen,0)) != ptr->msglen ) if ( (sentbytes= nn_send(ptr->sock,ptr->msg,ptr->msglen,0)) != ptr->msglen )
printf("%d LP_send sent %d instead of %d\n",n,sentbytes,ptr->msglen); printf("%d LP_send sent %d instead of %d\n",n,sentbytes,ptr->msglen);
// else printf("%d %p qsent %u msglen.%d peerind.%d\n",n,ptr,ptr->crc32,ptr->msglen,ptr->peerind); else printf("%d %p qsent %u msglen.%d peerind.%d\n",n,ptr,ptr->crc32,ptr->msglen,ptr->peerind);
ptr->sock = -1; ptr->sock = -1;
if ( ptr->peerind > 0 ) if ( ptr->peerind > 0 )
ptr->starttime = (uint32_t)time(NULL); ptr->starttime = (uint32_t)time(NULL);
@ -214,7 +214,7 @@ void _LP_queuesend(uint32_t crc32,int32_t sock0,int32_t sock1,uint8_t *msg,int32
printf("_LP_queuesend0 sent %d instead of %d\n",sentbytes,msglen); printf("_LP_queuesend0 sent %d instead of %d\n",sentbytes,msglen);
else else
{ {
//printf("Q sent %u\n",crc32); printf("Q sent %u\n",crc32);
sock0 = -1; sock0 = -1;
} }
} }

2
iguana/exchanges/LP_utxos.c

@ -193,7 +193,7 @@ int32_t LP_utxopurge(int32_t allutxos)
cJSON *LP_inventoryjson(cJSON *item,struct LP_utxoinfo *utxo) cJSON *LP_inventoryjson(cJSON *item,struct LP_utxoinfo *utxo)
{ {
struct _LP_utxoinfo u; struct _LP_utxoinfo u;
jaddstr(item,"method","utxo"); jaddstr(item,"method","oldutxo");
if ( utxo == 0 ) if ( utxo == 0 )
return(item); return(item);
if ( utxo->gui[0] != 0 ) if ( utxo->gui[0] != 0 )

Loading…
Cancel
Save