Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
7bb222e63b
  1. 4
      iguana/iguana_unspents.c

4
iguana/iguana_unspents.c

@ -640,10 +640,10 @@ void iguana_unspents(struct supernet_info *myinfo,struct iguana_info *coin,cJSON
void iguana_prefetch(struct iguana_info *coin,struct iguana_bundle *bp) void iguana_prefetch(struct iguana_info *coin,struct iguana_bundle *bp)
{ {
int32_t i; struct iguana_bundle *spentbp; uint32_t starttime = (uint32_t)time(NULL); int32_t i; struct iguana_bundle *spentbp; uint32_t starttime = (uint32_t)time(NULL);
if ( bp->hdrsi > 30 ) if ( bp->hdrsi > 7 )
{ {
//printf("start prefetch for [%d]\n",bp->hdrsi); //printf("start prefetch for [%d]\n",bp->hdrsi);
for (i=1; i<30; i++) for (i=1; i<7; i++)
{ {
if ( (spentbp= coin->bundles[bp->hdrsi - i]) != 0 ) if ( (spentbp= coin->bundles[bp->hdrsi - i]) != 0 )
{ {

Loading…
Cancel
Save