Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
c12b6eea18
  1. 11
      iguana/iguana_ramchain.c

11
iguana/iguana_ramchain.c

@ -1581,7 +1581,13 @@ int32_t iguana_bundlefiles(struct iguana_info *coin,uint32_t *ipbits,void **ptrs
{
if ( (block= bp->blocks[bundlei]) != 0 )
fpipbits = block->fpipbits;
else return(0);
else
{
block->queued = 0;
block->fpipbits = 0;
bp->issued[bundlei] = 0;
return(0);
}
if ( num > 0 )
{
for (j=0; j<num; j++)
@ -1599,6 +1605,9 @@ int32_t iguana_bundlefiles(struct iguana_info *coin,uint32_t *ipbits,void **ptrs
if ( (ptrs[num]= OS_mapfile(fname,&filesizes[num],0)) == 0 )
{
printf("error mapping bundlei.%d\n",bundlei);
block->queued = 0;
block->fpipbits = 0;
bp->issued[bundlei] = 0;
return(0);
}
//printf("%s mapped ptrs[%d] filesize.%ld bundlei.%d ipbits.%x fpos.%d\n",fname,num,(long)filesizes[num],bundlei,fpipbits,bp->fpos[bundlei]);

Loading…
Cancel
Save