Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
8aadebf5b6
  1. 2
      iguana/iguana_bundles.c
  2. 9
      iguana/iguana_ramchain.c
  3. 2
      iguana/iguana_unspents.c

2
iguana/iguana_bundles.c

@ -881,7 +881,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru
} //else printf("finish incomplete.%d\n",bp->hdrsi);
}
}
else if ( bp->numsaved >= bp->n && (bp->isRT == 0 || coin->RTheight > bp->bundleheight+bp->n+coin->minconfirms) )
else if ( bp->numsaved >= bp->n )//&& (bp->isRT == 0 || coin->RTheight > bp->bundleheight+bp->n+coin->minconfirms) )
{
if ( iguana_bundleready(coin,bp) == bp->n )
{

9
iguana/iguana_ramchain.c

@ -2557,9 +2557,12 @@ int32_t iguana_bundlesaveHT(struct iguana_info *coin,struct OS_memspace *mem,str
iguana_bundleload(coin,&newchain,bp,0);
newchain.A = 0;
}
iguana_ramchain_free(coin,dest,0);
bp->ramchain = newchain;
//printf("finished bundlesave.%d\n",bp->bundleheight);
if ( coin->active != 0 )
{
iguana_ramchain_free(coin,dest,0);
bp->ramchain = newchain;
}
printf("finished bundlesave.%d retval.%d\n",bp->bundleheight,retval);
return(retval);
}

2
iguana/iguana_unspents.c

@ -911,7 +911,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
struct iguana_bundle *bp; struct iguana_ramchaindata *rdata; int32_t bundlei,err,n,flag=0;
struct iguana_block *block=0; struct iguana_blockRO *B; struct iguana_ramchain *dest=0,blockR;
long filesize; void *ptr; char str[65],fname[1024];
if ( (bp= coin->current) != 0 && bp->hdrsi == coin->longestchain/coin->chain->bundlesize && bp->hdrsi == coin->balanceswritten && coin->RTheight >= bp->bundleheight && coin->RTheight < bp->bundleheight+bp->n && coin->blocks.hwmchain.height >= coin->longestchain-1 )
if ( (bp= coin->current) != 0 && bp->hdrsi == coin->longestchain/coin->chain->bundlesize && bp->hdrsi == coin->balanceswritten && coin->RTheight >= bp->bundleheight && coin->RTheight < bp->bundleheight+bp->n && coin->blocks.hwmchain.height >= coin->longestchain-1 && coin->RTramchain.H.data->numblocks < bp->n )
{
iguana_RTramchainalloc(coin,bp);
bp->isRT = 1;

Loading…
Cancel
Save