Browse Source

Test

etomic
jl777 7 years ago
parent
commit
50aedf190a
  1. 5
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_signatures.c

5
iguana/exchanges/LP_commands.c

@ -503,11 +503,12 @@ stop()\n\
return(jprint(LP_coinsjson(0),1));
else if ( strcmp(method,"wantnotify") == 0 )
{
bits256 pub;
bits256 pub; static uint32_t lastnotify;
pub = jbits256(argjson,"pub");
//char str[65]; printf("got wantnotify.(%s) vs %s\n",jprint(argjson,0),bits256_str(str,G.LP_mypub25519));
if ( bits256_cmp(pub,G.LP_mypub25519) == 0 )
if ( bits256_cmp(pub,G.LP_mypub25519) == 0 && time(NULL) > lastnotify+30 )
{
lastnotify = (uint32_t)time(NULL);
printf("wantnotify for me!\n");
LP_notify_pubkeys(ctx,LP_mypubsock);
}

2
iguana/exchanges/LP_signatures.c

@ -587,7 +587,7 @@ void LP_smartutxos_push(struct iguana_info *coin)
struct LP_peerinfo *peer,*tmp; uint64_t value; bits256 zero,txid; int32_t i,vout,height,n; char *retstr; cJSON *array,*item,*req;
if ( coin->smartaddr[0] == 0 )
return;
LP_notify_pubkeys(coin->ctx,LP_mypubsock);
//LP_notify_pubkeys(coin->ctx,LP_mypubsock);
if ( (array= LP_address_utxos(coin,coin->smartaddr,1)) != 0 )
{
memset(zero.bytes,0,sizeof(zero));

Loading…
Cancel
Save