|
|
@ -283,7 +283,6 @@ int32_t iguana_realtime_update(struct iguana_info *coin) |
|
|
|
bp->lastRT = (uint32_t)time(NULL); |
|
|
|
iguana_RTramchainalloc("RTbundle",coin,bp); |
|
|
|
bp->isRT = 1; |
|
|
|
printf("rdata.%p\n",coin->RTramchain.H.data); |
|
|
|
while ( (rdata= coin->RTramchain.H.data) != 0 && coin->RTheight <= coin->blocks.hwmchain.height-offset ) |
|
|
|
{ |
|
|
|
if ( coin->RTdatabad != 0 ) |
|
|
@ -294,7 +293,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin) |
|
|
|
bundlei = (coin->RTheight % coin->chain->bundlesize); |
|
|
|
if ( (block= iguana_bundleblock(coin,&hash2,bp,bundlei)) != 0 ) |
|
|
|
iguana_bundlehashadd(coin,bp,bundlei,block); |
|
|
|
printf("RT.%d vs hwm.%d starti.%d bp->n %d block.%p/%p ramchain.%p databad.%d prevnonz.%d\n",coin->RTheight,coin->blocks.hwmchain.height,coin->RTstarti,bp->n,block,bp->blocks[bundlei],dest->H.data,coin->RTdatabad,bits256_nonz(block->RO.prev_block)); |
|
|
|
//printf("RT.%d vs hwm.%d starti.%d bp->n %d block.%p/%p ramchain.%p databad.%d prevnonz.%d\n",coin->RTheight,coin->blocks.hwmchain.height,coin->RTstarti,bp->n,block,bp->blocks[bundlei],dest->H.data,coin->RTdatabad,bits256_nonz(block->RO.prev_block));
|
|
|
|
if ( coin->RTdatabad == 0 && block != 0 && bits256_nonz(block->RO.prev_block) != 0 ) |
|
|
|
{ |
|
|
|
iguana_blocksetcounters(coin,block,dest); |
|
|
|