From 6cc19fd8c8c1ede91b0c0659ceaa17232fbeda84 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 3 Jun 2017 08:18:14 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 17c25ee75..3316a162b 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -111,6 +111,7 @@ void LP_mainloop(struct LP_peerinfo *mypeer,uint16_t mypubport,int32_t pubsock,i LP_coinfind(activecoins[i]); LP_priceinfoadd(activecoins[i]); } + LP_privkey_updates(mypeer,pubsock,passphrase,amclient); HASH_ITER(hh,LP_peerinfos,peer,tmp) { if ( strcmp(peer->ipaddr,mypeer->ipaddr) != 0 ) @@ -121,7 +122,7 @@ void LP_mainloop(struct LP_peerinfo *mypeer,uint16_t mypubport,int32_t pubsock,i while ( 1 ) { nonz = n = 0; - if ( (counter++ % 3600) == 0 ) + if ( (++counter % 3600) == 0 ) LP_privkey_updates(mypeer,pubsock,passphrase,amclient); if ( (counter % 500) == 0 ) { @@ -163,7 +164,7 @@ void LP_mainloop(struct LP_peerinfo *mypeer,uint16_t mypubport,int32_t pubsock,i while ( 1 ) { nonz = 0; - if ( (counter++ % 2000) == 0 ) + if ( (++counter % 2000) == 0 ) LP_privkey_updates(mypeer,pubsock,passphrase,amclient); HASH_ITER(hh,LP_peerinfos,peer,tmp) { @@ -174,7 +175,7 @@ void LP_mainloop(struct LP_peerinfo *mypeer,uint16_t mypubport,int32_t pubsock,i if ( strcmp(peer->ipaddr,mypeer->ipaddr) != 0 ) LP_peersquery(amclient,mypeer,pubsock,peer->ipaddr,peer->port,mypeer->ipaddr,myport,profitmargin); } - if ( peer->numutxos > mypeer->numutxos ) + if ( peer->numutxos != mypeer->numutxos ) { lastn = peer->numutxos - mypeer->numutxos + LP_PROPAGATION_SLACK; if ( lastn < 0 )