Browse Source

Test

etomic
jl777 7 years ago
parent
commit
c7a05f4d63
  1. 5
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_utxos.c

5
iguana/exchanges/LP_nativeDEX.c

@ -111,6 +111,11 @@ void LP_mainloop(struct LP_peerinfo *mypeer,uint16_t mypubport,int32_t pubsock,i
LP_coinfind(activecoins[i]);
LP_priceinfoadd(activecoins[i]);
}
HASH_ITER(hh,LP_peerinfos,peer,tmp)
{
if ( strcmp(peer->ipaddr,mypeer->ipaddr) != 0 )
LP_utxosquery(0,mypeer,pubsock,peer->ipaddr,peer->port,"",100,mypeer->ipaddr,myport,profitmargin);
}
if ( amclient != 0 )
{
while ( 1 )

2
iguana/exchanges/LP_utxos.c

@ -183,7 +183,7 @@ int32_t LP_utxosparse(int32_t amclient,struct LP_peerinfo *mypeer,int32_t mypubs
void LP_utxosquery(int32_t amclient,struct LP_peerinfo *mypeer,int32_t mypubsock,char *destipaddr,uint16_t destport,char *coin,int32_t lastn,char *myipaddr,uint16_t myport,double myprofit)
{
char *retstr; struct LP_utxoinfo *utxo,*tmp; struct LP_peerinfo *peer; int32_t i,firsti; uint32_t now,flag = 0;
char *retstr; struct LP_peerinfo *peer; int32_t i,firsti; uint32_t now;
if ( amclient != 0 )
{
printf("LP_utxosquery not for clientside\n");

Loading…
Cancel
Save