Browse Source

Test

etomic
jl777 7 years ago
parent
commit
761709fdb2
  1. 5
      iguana/exchanges/LP_remember.c
  2. 4
      iguana/exchanges/LP_transaction.c

5
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= LP_coinfind(symbol)) != 0 && (ht= LP_txheight(coin,txid)) > 0 && ht > 0 )
{ {
if ( coin->firstrefht == 0 || ht < coin->firstrefht ) if ( coin->firstrefht == 0 || ht < coin->firstrefht )
{
if ( coin->firstscanht == 0 || ht < coin->firstscanht )
coin->firstscanht = coin->lastscanht = ht;
coin->firstrefht = 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 ) if ( bits256_nonz(checktxid) == 0 )
checktxid = jbits256(sentobj,"hash"); checktxid = jbits256(sentobj,"hash");

4
iguana/exchanges/LP_transaction.c

@ -587,10 +587,10 @@ char *basilisk_swap_bobtxspend(bits256 *signedtxidp,uint64_t txfee,char *name,ch
free_json(txobj); free_json(txobj);
//if ( value != 0 ) //if ( value != 0 )
// gettxout // gettxout
} } else printf("cant gettx\n");
if ( value == 0 ) 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); return(0);
} }
} }

Loading…
Cancel
Save