Browse Source

Test

etomic
jl777 7 years ago
parent
commit
f20efd48ad
  1. 2
      iguana/exchanges/LP_cache.c
  2. 2
      iguana/exchanges/LP_nativeDEX.c

2
iguana/exchanges/LP_cache.c

@ -225,6 +225,8 @@ bits256 LP_merkleroot(struct iguana_info *coin,struct electrum_info *ep,int32_t
int32_t LP_merkleproof(struct iguana_info *coin,struct electrum_info *ep,bits256 txid,int32_t height)
{
struct LP_transaction *tx=0; cJSON *merkobj,*merkles,*retjson; bits256 roothash,merkleroot; int32_t m,SPV = 0;
if ( height < 0 )
return(0);
if ( (tx= LP_transactionfind(coin,txid)) == 0)
{
if ( (retjson= electrum_transaction(coin->symbol,ep,&retjson,txid)) != 0 )

2
iguana/exchanges/LP_nativeDEX.c

@ -531,7 +531,7 @@ void LP_coinsloop(void *_coins)
if ( (tx= LP_transactionfind(coin,up->U.txid)) != 0 && tx->SPV == 0 )
{
tx->SPV = up->SPV;
printf("%s %s: SPV.%d\n",coin->symbol,bits256_str(str,up->U.txid),up->SPV);
//printf("%s %s: SPV.%d\n",coin->symbol,bits256_str(str,up->U.txid),up->SPV);
}
}
}

Loading…
Cancel
Save