Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
2254507328
  1. 5
      iguana/iguana_ramchain.c
  2. 4
      iguana/iguana_recv.c

5
iguana/iguana_ramchain.c

@ -713,6 +713,7 @@ int32_t iguana_metascript(struct iguana_info *coin,RAMCHAIN_FUNC,struct iguana_s
uint32_t poffsets[16],sigsize,pubkeysize,p2shsize,sigslen,suffixlen;
uint8_t sigsbuf[16*128],_script[IGUANA_MAXSCRIPTSIZE],*suffix;
sigslen = 0;
memset(&V,0,sizeof(V));
if ( vinscript != 0 && vinscriptlen > 0 )
{
if ( rawflag == 0 )
@ -754,9 +755,13 @@ int32_t iguana_metascript(struct iguana_info *coin,RAMCHAIN_FUNC,struct iguana_s
}
else
{
sigslen = 0;
s->sighash = s->numsigs = s->numpubkeys = s->p2sh = s->coinbase = 0;
suffix = vinscript;
suffixlen = vinscriptlen;
for (i=0; i<vinscriptlen; i++)
printf("%02x",vinscript[i]);
printf(" suffix mode.%d\n",vinscriptlen);
}
if ( sigslen+V.numsigs+V.numpubkeys+suffixlen != 0 || s->sequenceid == 3 )
{

4
iguana/iguana_recv.c

@ -1037,7 +1037,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
break;
if ( coin->peers.ranked[hdrsi] == 0 || coin->peers.ranked[hdrsi]->msgcounts.verack == 0 )
continue;
for (bundlei=n=0; bundlei<bp->n; bundlei++)
for (bundlei=n=flag=0; bundlei<bp->n; bundlei++)
if ( (block= bp->blocks[bundlei]) != 0 )
{
if ( bits256_nonz(block->RO.hash2) > 0 && block->fpipbits != 0 )
@ -1058,7 +1058,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
}
}
if ( flag != 0 )
printf("issued %d priority blocks for current.[%d] have %d blocks emit.%u\n",flag,bp->hdrsi,n,bp->emitfinish);
printf("issued %d priority blocks for %d current.[%d] have %d blocks emit.%u\n",flag,hdrsi,bp->hdrsi,n,bp->emitfinish);
}
}
hdrsi = (coin->blocks.hwmchain.height+1) / coin->chain->bundlesize;

Loading…
Cancel
Save