Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
3772152eff
  1. 3
      iguana/iguana_unspents.c
  2. 2
      iguana/main.c

3
iguana/iguana_unspents.c

@ -1383,7 +1383,8 @@ int32_t iguana_volatilesinit(struct iguana_info *coin)
{
//char str[65];
//printf("set hwmchain.%d <- %s %p\n",bp->bundleheight+bp->n-1,bits256_str(str,bp->hashes[bp->n-1]),block);
coin->blocks.hwmchain = *block;
if ( block->height > coin->blocks.hwmchain.height )
coin->blocks.hwmchain = *block;
}
//printf("end volatilesinit\n");
return(coin->balanceswritten);

2
iguana/main.c

@ -426,7 +426,7 @@ void mainloop(struct supernet_info *myinfo)
{
isRT *= coin->isRT;
numpeers += coin->peers.numranked;
if ( time(NULL) > coin->startutc+10 && coin->spendvectorsaved != 1 && coin->blocks.hwmchain.height/coin->chain->bundlesize >= (coin->longestchain-coin->minconfirms)/coin->chain->bundlesize )
if ( time(NULL) > coin->startutc+10 && coin->spendvectorsaved == 0 && coin->blocks.hwmchain.height/coin->chain->bundlesize >= (coin->longestchain-coin->minconfirms)/coin->chain->bundlesize )
{
n = coin->bundlescount-1;
if ( iguana_emitfinished(coin,1) >= n )

Loading…
Cancel
Save