|
|
@ -399,7 +399,7 @@ int32_t iguana_alloctxbits(struct iguana_info *coin,struct iguana_ramchain *ramc |
|
|
|
ramchain->txbits = calloc(1,tlen); |
|
|
|
memcpy(ramchain->txbits,TXbits,tlen); |
|
|
|
total += tlen; |
|
|
|
char str[65]; printf("alloc.[%d] txbits.%p[%d] total %s\n",ramchain->H.data->height/coin->chain->bundlesize,ramchain->txbits,tlen,mbstr(str,total)); |
|
|
|
//char str[65]; printf("alloc.[%d] txbits.%p[%d] total %s\n",ramchain->H.data->height/coin->chain->bundlesize,ramchain->txbits,tlen,mbstr(str,total));
|
|
|
|
return(tlen); |
|
|
|
} |
|
|
|
return(-1); |
|
|
@ -1840,8 +1840,8 @@ int32_t iguana_realtime_update(struct iguana_info *coin) |
|
|
|
B = (void *)(long)((long)rdata + rdata->Boffset); |
|
|
|
bundlei = (coin->RTheight % coin->chain->bundlesize); |
|
|
|
block = iguana_bundleblock(coin,&hash2,bp,bundlei); |
|
|
|
if ( bits256_nonz(hash2) != 0 ) |
|
|
|
iguana_blockhashset("RTset",coin,bp->bundleheight+bundlei,hash2,1); |
|
|
|
//if ( bits256_nonz(hash2) != 0 )
|
|
|
|
// iguana_blockhashset("RTset",coin,bp->bundleheight+bundlei,hash2,1);
|
|
|
|
//printf("RT.%d vs hwm.%d starti.%d bp->n %d block.%p/%p ramchain.%p\n",coin->RTheight,coin->blocks.hwmchain.height,coin->RTstarti,bp->n,block,bp->blocks[bundlei],dest->H.data);
|
|
|
|
if ( block != 0 && bits256_nonz(block->RO.prev_block) != 0 ) |
|
|
|
{ |
|
|
|