diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 0fbbf7d91..b6ad97819 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -745,8 +745,11 @@ void LP_price_broadcastloop(void *ctx) for (relind=0; relindmyprices[relpp->ind]) > SMALLVAL) + if ( basepp != 0 && relpp != 0 && (price= relpp->myprices[basepp->ind]) > SMALLVAL) + { + printf("automated price broadcast %s/%s %.8f\n",relpp->symbol,basepp->symbol,price); LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,relpp->symbol,basepp->symbol,price); + } } } sleep(60); diff --git a/iguana/exchanges/LP_signatures.c b/iguana/exchanges/LP_signatures.c index efbfa6438..e9b022e7a 100644 --- a/iguana/exchanges/LP_signatures.c +++ b/iguana/exchanges/LP_signatures.c @@ -358,7 +358,7 @@ char *LP_postutxos_recv(cJSON *argjson) struct LP_utxos_qitem *uitem; struct iguana_info *coin; char *coinaddr,*symbol; bits256 utxoshash,pubkey; cJSON *obj; struct LP_pubkeyinfo *pubp; pubkey = jbits256(argjson,"pubkey"); pubp = LP_pubkeyfind(pubkey); - if ( pubp->numerrors > LP_MAXPUBKEY_ERRORS ) + if ( pubp != 0 && pubp->numerrors > LP_MAXPUBKEY_ERRORS ) return(clonestr("{\"error\":\"blacklisted\"}")); if ( (coinaddr= jstr(argjson,"coinaddr")) != 0 && (symbol= jstr(argjson,"coin")) != 0 && (coin= LP_coinfind(symbol)) != 0 ) {