Browse Source

Test

etomic
jl777 8 years ago
parent
commit
7381e22678
  1. 2
      iguana/exchanges/LP_network.c
  2. 5
      iguana/exchanges/LP_utxos.c

2
iguana/exchanges/LP_network.c

@ -51,7 +51,7 @@ int32_t LP_send(int32_t sock,char *msg,int32_t freeflag)
}
usleep(1000);
}
printf("error LP_send sock.%d, pipeline timeout.(%s)\n",sock,msg);
printf("error LP_send sock.%d, pipeline timeout.(%s) %s\n",sock,msg,nn_strerror(nn_errno()));
//if ( (sentbytes= nn_send(sock,msg,len,0)) != len )
// printf("LP_send sent %d instead of %d\n",sentbytes,len);
if ( freeflag != 0 )

5
iguana/exchanges/LP_utxos.c

@ -763,14 +763,11 @@ void LP_privkey_updates(int32_t pubsock,char *passphrase,int32_t initonly)
pubkey = privkey;
for (i=0; i<LP_numcoins; i++)
{
printf("i.%d of %d\n",i,LP_numcoins);
//printf("i.%d of %d\n",i,LP_numcoins);
if ( (coin= LP_coinfind(LP_coins[i].symbol)) != 0 )
{
if ( bits256_nonz(privkey) == 0 || coin->smartaddr[0] == 0 )
{
printf("LP_privkeycalc\n");
privkey = LP_privkeycalc(pubkey33,&pubkey,coin,passphrase,"");
}
if ( coin->inactive == 0 && initonly == 0 )
LP_privkey_init(pubsock,coin,privkey,pubkey,pubkey33);
}

Loading…
Cancel
Save