Browse Source

Test

etomic
jl777 7 years ago
parent
commit
05c5e9078c
  1. 1
      iguana/exchanges/LP_signatures.c
  2. 5
      iguana/exchanges/LP_socket.c
  3. 6
      iguana/exchanges/LP_utxos.c

1
iguana/exchanges/LP_signatures.c

@ -616,6 +616,7 @@ char *LP_notify_recv(cJSON *argjson)
void LP_smartutxos_push(struct iguana_info *coin)
{
uint64_t value; bits256 zero,txid; int32_t i,vout,height,n; cJSON *array,*item,*req;
return;
if ( coin->smartaddr[0] == 0 )
return;
//LP_notify_pubkeys(coin->ctx,LP_mypubsock);

5
iguana/exchanges/LP_socket.c

@ -602,7 +602,10 @@ cJSON *electrum_address_listunspent(char *symbol,struct electrum_info *ep,cJSON
printf("%s.%d u.%u/%d t.%ld %s LISTUNSPENT.(%d)\n",coin->symbol,height,ap->unspenttime,ap->unspentheight,time(NULL),addr,(int32_t)strlen(jprint(retjson,0)));
updatedflag = 0;
if ( electrum_process_array(coin,ep,addr,retjson,electrumflag) != 0 )
LP_postutxos(coin->symbol,addr), updatedflag = 1;
{
//LP_postutxos(coin->symbol,addr);
updatedflag = 1;
}
if ( strcmp(addr,coin->smartaddr) == 0 )
{
retstr = jprint(retjson,0);

6
iguana/exchanges/LP_utxos.c

@ -700,7 +700,7 @@ int32_t LP_privkey_init(int32_t mypubsock,struct iguana_info *coin,bits256 mypri
}
}
free_json(array);
if ( flag != 0 )
if ( 0 && flag != 0 )
LP_postutxos(coin->symbol,coin->smartaddr);
}
if ( values != 0 )
@ -849,7 +849,9 @@ void LP_privkey_updates(void *ctx,int32_t pubsock,char *passphrase)
{
//printf("from updates %s\n",coin->symbol);
if ( LP_privkey_init(pubsock,coin,G.LP_privkey,G.LP_mypub25519) == 0 && (LP_rand() % 10) == 0 )
LP_postutxos(coin->symbol,coin->smartaddr);
{
//LP_postutxos(coin->symbol,coin->smartaddr);
}
}
}
}

Loading…
Cancel
Save