Browse Source

test

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

2
iguana/iguana_ramchain.c

@ -443,7 +443,7 @@ uint32_t iguana_ramchain_addunspent20(struct iguana_info *coin,struct iguana_pee
static uint64_t totalsize;
totalsize += scriptlen;
char str[65];
if ( (rand() % 10000) == 0 )
if ( (rand() % 100000) == 0 )
fprintf(stderr,"IGUANA_SCRIPT_76AC type.%d scriptlen.%d bp.%p %s\n",type,scriptlen,bp,mbstr(str,totalsize));
}
u->scriptlen = scriptlen;

2
iguana/iguana_recv.c

@ -489,7 +489,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
}
if ( bp->emitfinish > coin->startutc )
{
if ( bp->hdrsi == 0 || ((prevbp= coin->bundles[bp->hdrsi-1]) != 0 && coin->current != 0 && coin->current->hdrsi >= bp->hdrsi) )
if ( bp->hdrsi == 0 || ((prevbp= coin->bundles[bp->hdrsi-1]) != 0 && coin->current != 0 && coin->current->hdrsi >= bp->hdrsi && prevbp->emitfinish > coin->startutc && time(NULL) > prevbp->emitfinish+3) )
{
if ( bp->startutxo == 0 )
{

Loading…
Cancel
Save