Browse Source

Test

etomic
jl777 7 years ago
parent
commit
f26a8016ce
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_rpc.c
  3. 2
      iguana/exchanges/LP_utxos.c
  4. 2
      iguana/exchanges/listunspent

2
iguana/exchanges/LP_nativeDEX.c

@ -321,7 +321,7 @@ int32_t LP_utxos_sync(struct LP_peerinfo *peer)
int32_t i,j,n=0,m,v,posted=0; bits256 txid; cJSON *array,*item,*item2,*array2,*array3; uint64_t total,total2,metric; struct iguana_info *coin,*ctmp; struct LP_address *ap; char *retstr,*retstr2,*coinaddr;
HASH_ITER(hh,LP_coins,coin,ctmp)
{
if ( coin->inactive != 0 )//|| (coin->electrum != 0 && coin->obooktime == 0) )
if ( IAMLP == 0 && coin->inactive != 0 )//|| (coin->electrum != 0 && coin->obooktime == 0) )
continue;
total = 0;
LP_listunspent_both(coin->symbol,coin->smartaddr);

2
iguana/exchanges/LP_rpc.c

@ -425,7 +425,7 @@ cJSON *LP_listunspent(char *symbol,char *coinaddr)
return(cJSON_Parse("{\"error\":\"null symbol\"}"));
coin = LP_coinfind(symbol);
//printf("LP_listunspent.(%s %s)\n",symbol,coinaddr);
if ( coin == 0 || coin->inactive != 0 )
if ( coin == 0 || (IAMLP == 0 && coin->inactive != 0) )
return(cJSON_Parse("{\"error\":\"no coin\"}"));
if ( coin->electrum == 0 )
{

2
iguana/exchanges/LP_utxos.c

@ -778,7 +778,7 @@ void LP_privkey_updates(void *ctx,int32_t pubsock,char *passphrase)
privkey = LP_privkeycalc(ctx,pubkey33,&pubkey,coin,passphrase,"");
}
//printf("i.%d of %d\n",i,LP_numcoins);
else if ( coin->inactive == 0 )
else if ( IAMLP == 0 || coin->inactive == 0 )
{
if ( LP_privkey_init(pubsock,coin,G.LP_mypriv25519,G.LP_mypub25519) == 0 && (rand() % 10) == 0 )
LP_postutxos(coin->symbol,coin->smartaddr);

2
iguana/exchanges/listunspent

@ -1,3 +1,3 @@
#!/bin/bash
source userpass
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"listunspent\",\"coin\":\"BTC\",\"address\":\"1DPDsPCNNCF5SHhPPrddXcJe78rM6CBcH3\"}"
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"listunspent\",\"coin\":\"CHIPS\",\"address\":\"RAsvnHfueHcbQTfX69rc9oMEG65zwrk73p\"}"

Loading…
Cancel
Save