Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
868143fa1d
  1. 6
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_recv.c

6
iguana/iguana_bundles.c

@ -1498,9 +1498,9 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch
iguana_blockQ("stuck",coin,bp,i,block->RO.hash2,1);
}
}
//for (i=0; i<bp->n; i++)
// if ( GETBIT(bp->haveblock,i) == 0 )
// bp->issued[i] = 0;
for (i=0; i<bp->n; i++)
if ( GETBIT(bp->haveblock,i) == 0 )
bp->issued[i] = 0;
if ( (n= iguana_bundleissuemissing(myinfo,coin,bp,3,1.)) > 0 )
printf("issued %d priority requests [%d] to unstick stuckiters.%d lag.%d\n",n,bp->hdrsi,coin->stuckiters,lag);
//else printf("no bundlerequests issued\n");

2
iguana/iguana_recv.c

@ -957,7 +957,7 @@ uint32_t iguana_allhashcmp(struct supernet_info *myinfo,struct iguana_info *coin
block->hh.prev = prev;
}
//if ( bp->hdrsi < coin->MAXBUNDLES )
iguana_blockQ("allhashes",coin,bp,i,blockhashes[i],0);
iguana_blockQ("allhashes",coin,bp,i,blockhashes[i],1);
} else printf("no allhashes block.%p or mismatch.%p\n",block,bp->blocks[i]);
prev = block;
}

Loading…
Cancel
Save