|
|
@ -13,7 +13,7 @@ |
|
|
|
* Removal or modification of this copyright notice is prohibited. * |
|
|
|
* * |
|
|
|
******************************************************************************/ |
|
|
|
|
|
|
|
//alice only coins
|
|
|
|
//
|
|
|
|
// LP_nativeDEX.c
|
|
|
|
// marketmaker
|
|
|
@ -392,9 +392,9 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int |
|
|
|
} |
|
|
|
} |
|
|
|
//printf("numutxos vs mine.%d\n",LP_mypeer != 0 ? LP_mypeer->numutxos : -1);
|
|
|
|
if ( LP_mypeer != 0 && LP_mypeer->numutxos < mostutxos && mostpeer != 0 && time(NULL) > lastresync+180 ) |
|
|
|
if ( LP_mypeer != 0 && LP_mypeer->numutxos < mostutxos && mostpeer != 0 && time(NULL) > lastresync+10 ) |
|
|
|
{ |
|
|
|
printf("myutxos.%d most.%d %s\n",LP_mypeer->numutxos,mostutxos,mostpeer->ipaddr); |
|
|
|
//printf("myutxos.%d most.%d %s\n",LP_mypeer->numutxos,mostutxos,mostpeer->ipaddr);
|
|
|
|
LP_peer_utxosquery(LP_mypeer,myport,pubsock,mostpeer,now,60,(mostutxos-LP_mypeer->numutxos) * 2); |
|
|
|
lastresync = (uint32_t)time(NULL); |
|
|
|
//LP_peer_pricesquery(mostpeer->ipaddr,mostpeer->port);
|
|
|
|