Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
56862e522d
  1. 3
      iguana/confs/BTCD_peers.txt
  2. 5
      iguana/iguana_recv.c
  3. 2
      iguana/iguana_unspents.c

3
iguana/confs/BTCD_peers.txt

@ -1,4 +1,5 @@
5.9.102.210
89.248.160.236
89.248.160.237
89.248.160.238
89.248.160.239
@ -6,6 +7,8 @@
89.248.160.241
89.248.160.242
89.248.160.243
89.248.160.244
89.248.160.245
78.47.58.62
67.212.70.88
94.102.50.69

5
iguana/iguana_recv.c

@ -553,7 +553,8 @@ uint32_t iguana_allhashcmp(struct iguana_info *coin,struct iguana_bundle *bp,bit
usleep(100000);
}
}
printf("ALLHASHES FOUND! %d allhashes.%d issued %d\n",bp->bundleheight,coin->allhashes,n);
if ( n > 0 )
printf("ALLHASHES FOUND! %d allhashes.%d issued %d\n",bp->bundleheight,coin->allhashes,n);
if ( bp->queued == 0 )
iguana_bundleQ(coin,bp,bp->n*5 + (rand() % 500));
return(bp->queued);
@ -887,7 +888,7 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct
printf("vcalc.(%s) [%d].(%s)\n",bits256_str(str,allhash),bp->hdrsi,bits256_str(str2,bp->hashes[0]));
if ( bits256_cmp(allhash,bp->allhash) == 0 )
{
if ( bp->speculative == 0 )
if ( 0 && bp->speculative == 0 )
printf("matched allhashes.[%d]\n",bp->hdrsi);
if ( bp->queued != 0 )
bp->queued = 0;

2
iguana/iguana_unspents.c

@ -840,7 +840,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st
}
for (k=0; k<T[txidind].numvins && errs==0; k++,spendind++)
{
if ( (spendind % 10000000) == 0 )
if ( (spendind % 1000) == 0 )
printf("[%-3d:%4d] spendvectors elapsed t.%-3d spendind.%d\n",bp->hdrsi,i,(uint32_t)time(NULL)-starttime,spendind);
u = 0;
s = &S[spendind];

Loading…
Cancel
Save