Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
a3e8c1e344
  1. 7
      iguana/iguana_ramchain.c
  2. 2
      iguana/iguana_unspents.c
  3. 2
      iguana/main.c

7
iguana/iguana_ramchain.c

@ -2457,7 +2457,12 @@ int32_t iguana_bundlesaveHT(struct iguana_info *coin,struct OS_memspace *mem,str
//printf("mapchain.[%d:%d] %p[%ld]\n",bp->hdrsi,bundlei,ptrs[bundlei],filesizes[bundlei]);
sprintf(fname,"save.%d",bp->hdrsi);
if ( iguana_mapchaininit(fname,coin,mapchain,bp,bundlei,block,ptrs[bundlei],filesizes[bundlei]) < 0 )
break;
{
iguana_bundlemapfree(coin,0,0,ipbits,ptrs,filesizes,num,R,starti,endi);
iguana_blockunmark(coin,bp->blocks[bundlei],bp,bundlei,1);
printf("error mapping hdrsi.%d bundlei.%d\n",bp->hdrsi,bundlei);
return(-1);
}
//printf("done mapchain.[%d:%d]\n",bp->hdrsi,bundlei);
numtxids += (mapchain->H.data->numtxids - 1);
numunspents += (mapchain->H.data->numunspents - 1);

2
iguana/iguana_unspents.c

@ -2076,7 +2076,7 @@ int32_t iguana_bundlevalidate(struct iguana_info *coin,struct iguana_bundle *bp,
}
}
bp->validatehash = validatehash;
} else printf("skip validate.[%d] validated.%u force.%d\n",bp->hdrsi,bp->validated,forceflag);
} // else printf("skip validate.[%d] validated.%u force.%d\n",bp->hdrsi,bp->validated,forceflag);
if ( errs != 0 )
{
printf("remove.[%d]\n",bp->hdrsi);

2
iguana/main.c

@ -470,7 +470,7 @@ void mainloop(struct supernet_info *myinfo)
}
pangea_queues(SuperNET_MYINFO(0));
if ( flag == 0 )
usleep(1000 + isRT*100000 + (numpeers == 0)*1000000);
usleep(10000 + isRT*100000 + (numpeers == 0)*1000000);
//iguana_jsonQ(); // cant do this here safely, need to send to coin specific queue
}
}

Loading…
Cancel
Save