diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 742bc954e..024b22b71 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -265,6 +265,8 @@ dividends(coin, height, )\n\ //* if ( (ptr= LP_coinsearch(coin)) != 0 ) { + if ( ptr->userpass[0] == 0 ) + return(clonestr("{\"error\":\"couldnt find coin locally installed\"}")); if ( LP_conflicts_find(ptr) == 0 ) { ptr->inactive = 0; diff --git a/iguana/exchanges/LP_network.c b/iguana/exchanges/LP_network.c index d5ef33335..f997427d2 100644 --- a/iguana/exchanges/LP_network.c +++ b/iguana/exchanges/LP_network.c @@ -177,7 +177,7 @@ else printf("%d %p qsent %u msglen.%d peerind.%d (%s)\n",n,ptr,ptr->crc32,ptr->m printf("found.%u Q.%d err.%d match.%d\n",ptr->crc32,LP_Qenqueued,LP_Qerrors,LP_Qfound); flag = 1; } - else + else if ( 0 ) // too much beyond duplicate filter when network is busy { printf("couldnt find.%u peerind.%d Q.%d err.%d match.%d\n",ptr->crc32,ptr->peerind,LP_Qenqueued,LP_Qerrors,LP_Qfound); ptr->peerind++; diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index 5b3d39678..e83007e48 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/iguana/exchanges/LP_utxo.c @@ -193,12 +193,12 @@ struct LP_address_utxo *LP_address_utxofind(struct iguana_info *coin,char *coina int32_t LP_address_utxoadd(struct iguana_info *coin,char *coinaddr,bits256 txid,int32_t vout,uint64_t value,int32_t height,int32_t spendheight) { struct LP_address *ap; cJSON *txobj; struct LP_address_utxo *up,*tmp; int32_t flag,retval = 0; char str[65]; -printf("%s add addr.%s ht.%d\n",coin->symbol,coinaddr,height); if ( coin == 0 ) return(0); if ( spendheight > 0 ) // dont autocreate entries for spends we dont care about ap = LP_addressfind(coin,coinaddr); else ap = LP_address(coin,coinaddr); + printf("%s add addr.%s ht.%d ap.%p\n",coin->symbol,coinaddr,height,ap); if ( ap != 0 ) { flag = 0;