Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
38d857c5ad
  1. 6
      iguana/iguana777.c
  2. 6
      iguana/iguana_bundles.c
  3. 5
      iguana/main.c

6
iguana/iguana777.c

@ -526,9 +526,9 @@ void iguana_coinloop(void *arg)
}
if ( coin->isRT != 0 && coin->current != 0 && coin->numverified >= coin->current->hdrsi )
{
static int32_t saved;
if ( saved++ == 0 )
iguana_coinflush(coin,1);
//static int32_t saved;
//if ( saved++ == 0 )
// iguana_coinflush(coin,1);
}
if ( coin->bindsock >= 0 )
{

6
iguana/iguana_bundles.c

@ -737,8 +737,8 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp)
{
if ( bp->speculative != 0 && bits256_nonz(bp->speculative[bundlei]) != 0 && bits256_nonz(bp->hashes[bundlei]) == 0 && time(NULL) > bp->issued[bundlei]+10 )
{
char str[65]; printf(" mismatched [%d:%d] %s block.%p\n",bp->hdrsi,bundlei,bits256_str(str,bp->speculative[bundlei]),block);
iguana_blockQ("missing",coin,0,-1,bp->speculative[bundlei],0);
//char str[65]; printf(" mismatched [%d:%d] %s block.%p\n",bp->hdrsi,bundlei,bits256_str(str,bp->speculative[bundlei]),block);
//iguana_blockQ("missing",coin,0,-1,bp->speculative[bundlei],0);
//bp->issued[bundlei] = (uint32_t)time(NULL);
}
}
@ -986,7 +986,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str)
}
if ( firstgap == 0 && (bp->emitfinish == 0 || bp->n < coin->chain->bundlesize) )
{
printf("firstgap <- [%d] emit.%u bp->n.%d\n",bp->hdrsi,bp->emitfinish,bp->n);
//printf("firstgap <- [%d] emit.%u bp->n.%d\n",bp->hdrsi,bp->emitfinish,bp->n);
firstgap = bp;
}
if ( bp->emitfinish == 0 )

5
iguana/main.c

@ -353,8 +353,11 @@ void mainloop(struct supernet_info *myinfo)
coin->pendbalances--;
iguana_balancesQ(coin,bp);
}
if ( bp->hdrsi == coin->bundlescount-1 )
if ( bp->hdrsi == coin->longestchain/coin->chain->bundlesize )
{
iguana_coinflush(ptr->coin,1);
printf("flushed bp->hdrsi %d == %d coin->longestchain/coin->chain->bundlesize\n",bp->hdrsi,coin->longestchain/coin->chain->bundlesize);
}
}
myfree(ptr,ptr->allocsize);
}

Loading…
Cancel
Save