jl777 7 years ago
parent
commit
b310426c72
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_signatures.c

4
iguana/exchanges/LP_nativeDEX.c

@ -322,7 +322,7 @@ int32_t LP_nanomsg_recvs(void *ctx)
//printf("check %s pubsock.%d\n",peer->ipaddr,peer->subsock);
milli = OS_milliseconds();
nonz += LP_sock_check("PULL",ctx,origipaddr,LP_mypubsock,peer->subsock,peer->ipaddr,1);
if ( OS_milliseconds()-milli > 3 )
if ( OS_milliseconds()-milli > 13 )
fprintf(stderr,">>>>>>>>>>>>>>>>> BIG latency lag %.3f milliseconds: (%s)\n",OS_milliseconds()-milli,LP_lastcommand!=0?LP_lastcommand:"");
}
/*HASH_ITER(hh,LP_coins,coin,ctmp) // firstrefht,firstscanht,lastscanht
@ -336,7 +336,7 @@ int32_t LP_nanomsg_recvs(void *ctx)
{
milli = OS_milliseconds();
nonz += LP_sock_check("SUB",ctx,origipaddr,-1,LP_mypullsock,"127.0.0.1",1);
if ( OS_milliseconds()-milli > 3 )
if ( OS_milliseconds()-milli > 13 )
fprintf(stderr,">>>>>>>>>>>>>>>>> BIG latency lag %.3f milliseconds: (%s)\n",OS_milliseconds()-milli,LP_lastcommand!=0?LP_lastcommand:"");
}
//portable_mutex_unlock(&LP_nanorecvsmutex);

2
iguana/exchanges/LP_signatures.c

@ -357,7 +357,7 @@ char *LP_notify_recv(cJSON *argjson)
//printf("got pubkey.(%s)\n",secpstr);
}
}
char str[65]; printf("%.3f NOTIFIED pub %s rmd160 %s\n",OS_milliseconds()-millis,bits256_str(str,pub),rmd160str);
//char str[65]; printf("%.3f NOTIFIED pub %s rmd160 %s\n",OS_milliseconds()-millis,bits256_str(str,pub),rmd160str);
}
return(clonestr("{\"result\":\"success\",\"notify\":\"received\"}"));
}

Loading…
Cancel
Save