Browse Source

Test

etomic
jl777 8 years ago
parent
commit
1eac4aaa35
  1. 16
      iguana/exchanges/LP_nativeDEX.c

16
iguana/exchanges/LP_nativeDEX.c

@ -217,14 +217,6 @@ void LP_mainloop(char *myipaddr,struct LP_peerinfo *mypeer,uint16_t mypubport,in
if ( (retstr= basilisk_swaplist()) != 0 )
free(retstr);
printf("update peers\n");
HASH_ITER(hh,LP_peerinfos,peer,tmp)
{
if ( strcmp(peer->ipaddr,mypeer != 0 ? mypeer->ipaddr : "127.0.0.1") != 0 )
{
//printf("query utxo from %s\n",peer->ipaddr);
LP_utxosquery(mypeer,pubsock,peer->ipaddr,peer->port,"",100,mypeer != 0 ? mypeer->ipaddr : "127.0.0.1",myport,profitmargin);
}
}
printf("mainloop pushaddr.(%s)\n",pushaddr);
if ( IAMLP == 0 )
{
@ -258,6 +250,14 @@ void LP_mainloop(char *myipaddr,struct LP_peerinfo *mypeer,uint16_t mypubport,in
}
else
{
HASH_ITER(hh,LP_peerinfos,peer,tmp)
{
if ( strcmp(peer->ipaddr,mypeer != 0 ? mypeer->ipaddr : "127.0.0.1") != 0 )
{
//printf("query utxo from %s\n",peer->ipaddr);
LP_utxosquery(mypeer,pubsock,peer->ipaddr,peer->port,"",100,mypeer != 0 ? mypeer->ipaddr : "127.0.0.1",myport,profitmargin);
}
}
while ( 1 )
{
nonz = 0;

Loading…
Cancel
Save