Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
0c01f1ba44
  1. 8
      iguana/iguana_init.c
  2. 5
      iguana/iguana_unspents.c

8
iguana/iguana_init.c

@ -154,7 +154,13 @@ int32_t iguana_savehdrs(struct iguana_info *coin)
bits256_str(shastr,bp->allhash);
}
fprintf(fp,"%d %s %s %s\n",bp->bundleheight,bits256_str(str,bp->hashes[0]),shastr,bits256_str(str2,bp->hashes[1]));
} else break;
}
else
{
if ( bp != 0 && bits256_nonz(bp->hashes[0]) != 0 )
fprintf(fp,"%d %s\n",bp->bundleheight,bits256_str(str,bp->hashes[0]));
break;
}
}
//printf("compare hdrs.txt %ld vs (%s) %ld\n",ftell(fp),fname,(long)OS_filesize(fname));
if ( ftell(fp) > OS_filesize(fname) )

5
iguana/iguana_unspents.c

@ -1789,6 +1789,11 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
startmillis0 = OS_milliseconds();
if ( iguana_ramchainfile(coin,dest,&blockR,bp,bundlei,block) == 0 )
{
for (i=0; i<bp->n; i++)
if ( GETBIT(bp->haveblock,i) == 0 )
bp->issued[i] = 0;
if ( (n= iguana_bundleissuemissing(coin,bp,3,1.)) > 0 )
printf("RT issued %d priority requests [%d] to unstick stuckiters.%d\n",n,bp->hdrsi,coin->stuckiters);
for (i=bundlei; i<bp->n; i++)
{
block = iguana_bundleblock(coin,&hash2,bp,i);

Loading…
Cancel
Save