Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
b1f9d339e4
  1. 4
      iguana/iguana_ramchain.c
  2. 2
      iguana/iguana_unspents.c

4
iguana/iguana_ramchain.c

@ -2225,11 +2225,11 @@ int32_t iguana_bundlesaveHT(struct iguana_info *coin,struct OS_memspace *mem,str
} }
//printf("%x ",(uint32_t)block->RO.hash2.ulongs[3]); //printf("%x ",(uint32_t)block->RO.hash2.ulongs[3]);
bp->blocks[bundlei]->RO.txn_count = mapchain->H.data->numtxids - 1; bp->blocks[bundlei]->RO.txn_count = mapchain->H.data->numtxids - 1;
printf("(%d %d).%d ",mapchain->H.data->numtxids,bp->blocks[bundlei]->RO.txn_count,numtxids); //printf("(%d %d).%d ",mapchain->H.data->numtxids,bp->blocks[bundlei]->RO.txn_count,numtxids);
//printf("%d ",numtxids); //printf("%d ",numtxids);
} }
scriptspace += pubkeyspace*1.1 + sigspace*1.1; scriptspace += pubkeyspace*1.1 + sigspace*1.1;
printf("mem.%p mapchain txid tables, scriptspace.%u sigspace.%u pubkeyspace.%u bundlei.%d/%d\n",mem,scriptspace,sigspace,pubkeyspace,bundlei,bp->n); //printf("mem.%p mapchain txid tables, scriptspace.%u sigspace.%u pubkeyspace.%u bundlei.%d/%d\n",mem,scriptspace,sigspace,pubkeyspace,bundlei,bp->n);
if ( bundlei != bp->n ) if ( bundlei != bp->n )
{ {
if ( (block= bp->blocks[bundlei]) != 0 ) if ( (block= bp->blocks[bundlei]) != 0 )

2
iguana/iguana_unspents.c

@ -97,7 +97,7 @@ struct iguana_bundle *iguana_spent(struct iguana_info *coin,bits256 *prevhashp,u
{ {
unspentind = TX.firstvout + ((prev_vout > 0) ? prev_vout : 0); unspentind = TX.firstvout + ((prev_vout > 0) ? prev_vout : 0);
hdrsi = height / coin->chain->bundlesize; hdrsi = height / coin->chain->bundlesize;
printf("%s height.%d firstvout.%d prev.%d ->U%d\n",bits256_str(str,prev_hash),height,TX.firstvout,prev_vout,unspentind); //printf("%s height.%d firstvout.%d prev.%d ->U%d\n",bits256_str(str,prev_hash),height,TX.firstvout,prev_vout,unspentind);
} }
else else
{ {

Loading…
Cancel
Save