Browse Source

Test

etomic
jl777 7 years ago
parent
commit
b3500342de
  1. 4
      iguana/exchanges/LP_scan.c
  2. 2
      iguana/exchanges/LP_socket.c

4
iguana/exchanges/LP_scan.c

@ -575,7 +575,7 @@ int64_t basilisk_txvalue(char *symbol,bits256 txid,int32_t vout)
uint64_t LP_txvalue(char *coinaddr,char *symbol,bits256 txid,int32_t vout) uint64_t LP_txvalue(char *coinaddr,char *symbol,bits256 txid,int32_t vout)
{ {
struct LP_transaction *tx; struct iguana_info *coin; char str[65]; struct LP_transaction *tx; struct iguana_info *coin; char str[65],str2[65];
if ( (coin= LP_coinfind(symbol)) == 0 || coin->inactive != 0 ) if ( (coin= LP_coinfind(symbol)) == 0 || coin->inactive != 0 )
return(0); return(0);
if ( coinaddr != 0 ) if ( coinaddr != 0 )
@ -592,7 +592,7 @@ uint64_t LP_txvalue(char *coinaddr,char *symbol,bits256 txid,int32_t vout)
{ {
if ( bits256_nonz(tx->outpoints[vout].spendtxid) != 0 ) if ( bits256_nonz(tx->outpoints[vout].spendtxid) != 0 )
{ {
printf("LP_txvalue %s/v%d is spent\n",bits256_str(str,txid),vout); printf("LP_txvalue %s/v%d is spent at %s\n",bits256_str(str,txid),vout,bits256_str(str2,tx->outpoints[vout].spendtxid));
return(0); return(0);
} }
else else

2
iguana/exchanges/LP_socket.c

@ -451,7 +451,7 @@ cJSON *electrum_address_getmempool(char *symbol,struct electrum_info *ep,cJSON *
{ {
cJSON *retjson; struct iguana_info *coin = LP_coinfind(symbol); cJSON *retjson; struct iguana_info *coin = LP_coinfind(symbol);
retjson = electrum_strarg(symbol,ep,retjsonp,"blockchain.address.get_mempool",addr,ELECTRUM_TIMEOUT); retjson = electrum_strarg(symbol,ep,retjsonp,"blockchain.address.get_mempool",addr,ELECTRUM_TIMEOUT);
//printf("MEMPOOL.(%s)\n",jprint(retjson,0)); printf("MEMPOOL.(%s)\n",jprint(retjson,0));
electrum_process_array(coin,retjson); electrum_process_array(coin,retjson);
return(retjson); return(retjson);
} }

Loading…
Cancel
Save