diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 2492ba102..b8c727d37 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -366,11 +366,11 @@ trust(pubkey, trust)\n\ } else { - /*if ( strcmp(method,"register") == 0 ) + if ( strcmp(method,"psock") == 0 ) { //printf("nonLP got (%s)\n",jprint(argjson,0)); - retstr = clonestr("{\"result\":\"success\",\"register\":\"received\"}"); - }*/ + retstr = clonestr("{\"result\":\"success\"}"); + } } } if ( retstr == 0 ) diff --git a/iguana/exchanges/LP_network.c b/iguana/exchanges/LP_network.c index bf3065c03..12a3438b5 100644 --- a/iguana/exchanges/LP_network.c +++ b/iguana/exchanges/LP_network.c @@ -139,7 +139,7 @@ void queue_loop(void *ignore) } 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++; if ( (ptr->sock= LP_peerindsock(&ptr->peerind)) < 0 ) { diff --git a/iguana/exchanges/LP_utxos.c b/iguana/exchanges/LP_utxos.c index 8e5cca2ce..5cb23a04a 100644 --- a/iguana/exchanges/LP_utxos.c +++ b/iguana/exchanges/LP_utxos.c @@ -234,11 +234,14 @@ cJSON *LP_inventoryjson(cJSON *item,struct LP_utxoinfo *utxo) { struct _LP_utxoinfo u; jaddstr(item,"method","utxo"); + if ( utxo == 0 ) + return(item); if ( LP_ismine(utxo) > 0 ) + { jaddnum(item,"session",LP_sessionid); + printf("sessionid.%u\n",LP_sessionid); + } else jaddnum(item,"session",utxo->T.sessionid); - if ( utxo == 0 ) - return(item); if ( utxo->gui[0] != 0 ) jaddstr(item,"gui",utxo->gui); jaddstr(item,"coin",utxo->coin);