|
|
@ -600,6 +600,7 @@ void iguana_RTblockadd(struct iguana_info *coin,struct iguana_block *block) |
|
|
|
if ( coin->RTrawdata[offset] == 0 ) |
|
|
|
coin->RTrawdata[offset] = iguana_RTrawdata(coin,block->RO.hash2,0,&coin->RTrecvlens[offset],&coin->RTnumtx[offset]); |
|
|
|
//printf("%s RTblockadd.%d offset.%d numtx.%d len.%d\n",coin->symbol,block->height,offset,coin->RTnumtx[offset],coin->RTrecvlens[offset]);
|
|
|
|
block->RO.txn_count = coin->RTnumtx[offset]; |
|
|
|
coin->RTblocks[offset] = block; |
|
|
|
iguana_RTiterate(coin,offset,block,1); |
|
|
|
} |
|
|
@ -611,12 +612,14 @@ void iguana_RTblocksub(struct iguana_info *coin,struct iguana_block *block) |
|
|
|
if ( block != 0 ) |
|
|
|
{ |
|
|
|
offset = block->height - coin->firstRTheight; |
|
|
|
block->RO.txn_count = coin->RTnumtx[offset]; |
|
|
|
//printf("%s RTblocksub.%d offset.%d\n",coin->symbol,block->height,offset);
|
|
|
|
iguana_RTiterate(coin,offset,block,-1); |
|
|
|
if ( coin->RTrawdata[offset] != 0 && coin->RTrecvlens[offset] != 0 ) |
|
|
|
iguana_RTunmap(coin->RTrawdata[offset],coin->RTrecvlens[offset]); |
|
|
|
coin->RTrawdata[offset] = 0; |
|
|
|
coin->RTrecvlens[offset] = 0; |
|
|
|
coin->RTnumtx[offset] = 0; |
|
|
|
coin->RTblocks[offset] = 0; |
|
|
|
} |
|
|
|
} |
|
|
|