diff --git a/iguana/exchanges/LP_remember.c b/iguana/exchanges/LP_remember.c index 275de09fa..c19d52129 100644 --- a/iguana/exchanges/LP_remember.c +++ b/iguana/exchanges/LP_remember.c @@ -705,7 +705,12 @@ int32_t LP_swap_load(struct LP_swap_remember *rswap) if ( (coin= LP_coinfind(symbol)) != 0 && (ht= LP_txheight(coin,txid)) > 0 && ht > 0 ) { if ( coin->firstrefht == 0 || ht < coin->firstrefht ) + { + if ( coin->firstscanht == 0 || ht < coin->firstscanht ) + coin->firstscanht = coin->lastscanht = ht; coin->firstrefht = ht; + printf(">>>>>>>>. 1st refht %s <- %d, scan %d %d\n",coin->symbol,ht,coin->firstscanht,coin->lastscanht); + } } if ( bits256_nonz(checktxid) == 0 ) checktxid = jbits256(sentobj,"hash"); diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 484c59a50..a7b69ec80 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -587,10 +587,10 @@ char *basilisk_swap_bobtxspend(bits256 *signedtxidp,uint64_t txfee,char *name,ch free_json(txobj); //if ( value != 0 ) // gettxout - } + } else printf("cant gettx\n"); if ( value == 0 ) { - printf("basilisk_swap_bobtxspend.%s %s utxo.(%s) already spent or doesnt exist\n",name,symbol,bits256_str(str,utxotxid)); + printf("basilisk_swap_bobtxspend.%s %s utxo.(%s).v%d already spent or doesnt exist\n",name,symbol,bits256_str(str,utxotxid),utxovout); return(0); } }