Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
ebf3776a50
  1. 6
      iguana/iguana_recv.c
  2. 3
      iguana/iguana_unspents.c

6
iguana/iguana_recv.c

@ -780,18 +780,18 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana
}*/
//printf("i.%d ref prev.(%s)\n",i,bits256_str(str,origblock->RO.prev_block));
}
if ( bp == coin->current && bp != 0 && block != 0 && bundlei >= 0 )
if ( bp != 0 && block != 0 && bundlei >= 0 )
{
if ( bp->speculative != 0 && bp->numspec <= bundlei )
{
bp->speculative[bundlei] = block->RO.hash2;
bp->numspec = bundlei+1;
}
if ( block != 0 && bundlei > 0 && (prev= iguana_blockfind(coin,block->RO.prev_block)) != 0 )
if ( bp == coin->current && block != 0 && bundlei > 0 && (prev= iguana_blockfind(coin,block->RO.prev_block)) != 0 )
{
if ( bp->bundleheight+bundlei-1 >= coin->blocks.hwmchain.height )
{
//printf("prev issue.%s\n",bits256_str(str,prev->RO.hash2));
printf("prev issue.%s\n",bits256_str(str,prev->RO.hash2));
iguana_blockQ("previssue",coin,bp,bundlei-1,prev->RO.hash2,0);
}
}

3
iguana/iguana_unspents.c

@ -658,7 +658,6 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp)
iguana_ramchain_prefetch(coin,ramchain);
for (i=0; i<bp->n; i++)
{
printf("spendvectors elapsed.%-3d [%-3d:%4d] numtx.%d\n",(uint32_t)time(NULL)-starttime,bp->hdrsi,i,B[i].txn_count);
if ( txidind != B[i].firsttxidind || spendind != B[i].firstvin )
{
printf("utxogen: txidind %u != %u B[%d].firsttxidind || spendind %u != %u B[%d].firstvin\n",txidind,B[i].firsttxidind,i,spendind,B[i].firstvin,i);
@ -676,6 +675,8 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp)
}
for (k=0; k<T[txidind].numvins && errs==0; k++,spendind++)
{
if ( (spendind % 10000) == 0 )
printf("spendvectors elapsed.%-3d [%-3d:%4d] spendind.%d\n",(uint32_t)time(NULL)-starttime,bp->hdrsi,i,spendind);
s = &S[spendind];
u = 0;
if ( s->external != 0 && s->prevout >= 0 )

Loading…
Cancel
Save