Browse Source

Test

etomic
jl777 7 years ago
parent
commit
96c9018ef0
  1. 4
      iguana/exchanges/LP_stats.c

4
iguana/exchanges/LP_stats.c

@ -316,7 +316,7 @@ int32_t LP_swap_finished(struct LP_swapstats *sp,int32_t dPoWflag)
else if ( sp->finished != 0 )
{
LP_finished_lastheight(sp);
if ( IAMLP == 0 )
if ( 0 && IAMLP == 0 )
printf("bob needs %d @ %d, alice needs %d @ %d\n",sp->bobneeds_dPoW,bob->notarized,sp->aliceneeds_dPoW,alice->notarized);
}
if ( (sp->bobneeds_dPoW == 0 || (sp->bobneeds_dPoW > 1 && bob->notarized >= sp->bobneeds_dPoW)) && (sp->aliceneeds_dPoW == 0 || (sp->aliceneeds_dPoW > 1 && alice->notarized >= sp->aliceneeds_dPoW)) )
@ -515,7 +515,7 @@ char *LP_swapstatus_recv(cJSON *argjson)
struct LP_swapstats *sp; int32_t methodind; bits256 txid; char str[65];
if ( (sp= LP_swapstats_find(j64bits(argjson,"aliceid"))) != 0 )
{
if ( IAMLP == 0 )
if ( 0 && IAMLP == 0 )
printf("swapstatus.(%s)\n",jprint(argjson,0));
sp->lasttime = (uint32_t)time(NULL);
if ( (methodind= jint(argjson,"ind")) > sp->methodind && methodind < sizeof(LP_stats_methods)/sizeof(*LP_stats_methods) )

Loading…
Cancel
Save