Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
eafc8d891a
  1. 4
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_ramchain.c

4
iguana/iguana_bundles.c

@ -1348,7 +1348,7 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch
bp->issued[j] = block->issued; bp->issued[j] = block->issued;
} }
} }
if ( bp->hdrsi == starti )//bp->hdrsi >= starti && bp->hdrsi < lasti ) if ( bp->hdrsi >= starti && bp->hdrsi < lasti )
iguana_bundlemissings(myinfo,coin,bp,now); iguana_bundlemissings(myinfo,coin,bp,now);
} }
bp->metric = coin->bundlescount - bp->hdrsi; bp->metric = coin->bundlescount - bp->hdrsi;
@ -1546,7 +1546,7 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch
} }
printf("%s bQ.%d %d:%02d:%02d stuck.%d max.%d\n",str,numbQ,(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,coin->stucktime!=0?(uint32_t)time(NULL) - coin->stucktime:0,coin->maxstuck); printf("%s bQ.%d %d:%02d:%02d stuck.%d max.%d\n",str,numbQ,(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,coin->stucktime!=0?(uint32_t)time(NULL) - coin->stucktime:0,coin->maxstuck);
strcpy(coin->lastdispstr,str); strcpy(coin->lastdispstr,str);
if ( (rand() % 100) == 0 ) //if ( (rand() % 100) == 0 )
myallocated(0,0); myallocated(0,0);
coin->lastdisp = (uint32_t)time(NULL); coin->lastdisp = (uint32_t)time(NULL);
} }

2
iguana/iguana_ramchain.c

@ -2240,6 +2240,8 @@ struct iguana_ramchain *iguana_bundleload(struct supernet_info *myinfo,struct ig
static const bits256 zero; static const bits256 zero;
struct iguana_blockRO *B; struct iguana_txid *T; int32_t i,firsti = 1; char fname[512]; struct iguana_blockRO *B; struct iguana_txid *T; int32_t i,firsti = 1; char fname[512];
struct iguana_block *block,*prev,*prev2; struct iguana_ramchain *mapchain; struct iguana_ramchaindata *rdata; struct iguana_block *block,*prev,*prev2; struct iguana_ramchain *mapchain; struct iguana_ramchaindata *rdata;
if ( bp->emitfinish > 1 )
return(ramchain);
memset(ramchain,0,sizeof(*ramchain)); memset(ramchain,0,sizeof(*ramchain));
if ( (mapchain= iguana_ramchain_map(coin,fname,bp,bp->n,ramchain,0,0,bp->hashes[0],zero,0,0,extraflag,1)) != 0 ) if ( (mapchain= iguana_ramchain_map(coin,fname,bp,bp->n,ramchain,0,0,bp->hashes[0],zero,0,0,extraflag,1)) != 0 )
{ {

Loading…
Cancel
Save