Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
2b60ae7c19
  1. 2
      iguana/iguana_bundles.c
  2. 4
      iguana/iguana_recv.c

2
iguana/iguana_bundles.c

@ -1225,8 +1225,6 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag)
lasti = lastbp == 0 ? coin->bundlescount-1 : lastbp->hdrsi;
iguana_recentpeers(coin,&capacity,0);
//sortbuf = calloc(count,sizeof(*sortbuf)*2);
if ( strcmp("BTC",coin->symbol) == 0 )
printf("inside bundlestats\n");
for (i=n=m=numv=pending=0; i<count; i++)
{
if ( (bp= coin->bundles[i]) != 0 )

4
iguana/iguana_recv.c

@ -1657,11 +1657,7 @@ int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin
if ( time(NULL) > coin->laststats+5 )
{
flag += iguana_reqblocks(coin);
if ( strcmp("BTC",coin->symbol) == 0 )
printf("call bundlestats\n");
iguana_bundlestats(coin,str,IGUANA_DEFAULTLAG);
if ( strcmp("BTC",coin->symbol) == 0 )
printf("back bundlestats\n");
coin->laststats = (uint32_t)time(NULL);
}
}

Loading…
Cancel
Save