Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
116060b9a1
  1. 6
      iguana/iguana_bundles.c
  2. 4
      iguana/iguana_ramchain.c

6
iguana/iguana_bundles.c

@ -631,8 +631,8 @@ int32_t iguana_bundleready(struct iguana_info *coin,struct iguana_bundle *bp)
fseek(fp,0,SEEK_END);
if ( ftell(fp) > sizeof(struct iguana_ramchaindata) )
{
printf("[%d:%d] %s %ld\n",bp->hdrsi,i,fname,ftell(fp));
ready++;
//printf("[%d:%d] %s %ld\n",bp->hdrsi,i,fname,ftell(fp));
ready++;
}
fclose(fp);
} else iguana_blockunmark(coin,block,bp,i,0);
@ -828,7 +828,7 @@ int32_t iguana_bundlefinalize(struct iguana_info *coin,struct iguana_bundle *bp,
return(0);
}
bp->emitfinish = 1;
sleep(3); // make sure new incoming packet didnt overwrite
usleep(100000); // make sure new incoming packet didnt overwrite
if ( iguana_bundleready(coin,bp) == bp->n )
{
coin->emitbusy++;

4
iguana/iguana_ramchain.c

@ -2344,10 +2344,10 @@ int32_t iguana_bundlesaveHT(struct iguana_info *coin,struct OS_memspace *mem,str
}
fpipbits = block->fpipbits, fpos = block->fpos;
mapchain = &R[bundlei];
printf("mapchain.[%d:%d] %p[%ld]\n",bp->hdrsi,bundlei,ptrs[bundlei],filesizes[bundlei]);
//printf("mapchain.[%d:%d] %p[%ld]\n",bp->hdrsi,bundlei,ptrs[bundlei],filesizes[bundlei]);
if ( iguana_mapchaininit(coin,mapchain,bp,bundlei,block,ptrs[bundlei],filesizes[bundlei]) < 0 )
break;
printf("done mapchain.[%d:%d]\n",bp->hdrsi,bundlei);
//printf("done mapchain.[%d:%d]\n",bp->hdrsi,bundlei);
numtxids += (mapchain->H.data->numtxids - 1);
numunspents += (mapchain->H.data->numunspents - 1);
numspends += (mapchain->H.data->numspends - 1);

Loading…
Cancel
Save