Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
9f7e2fb3e4
  1. 2
      iguana/iguana777.c
  2. 6
      iguana/iguana_realtime.c

2
iguana/iguana777.c

@ -731,7 +731,7 @@ void iguana_coinloop(void *arg)
{
if ( coin->peers->numranked > 4 && coin->isRT == 0 && now > coin->startutc+77 && coin->numsaved >= (coin->longestchain/coin->chain->bundlesize)*coin->chain->bundlesize && coin->blocks.hwmchain.height >= coin->longestchain-30 )
{
fprintf(stderr,">>>>>>> %s isRT blockrecv.%d vs longest.%d\n",coin->symbol,coin->blocksrecv,coin->longestchain);
fprintf(stderr,">>>>>>> %s isRT blockrecv.%d.%d\n",coin->symbol,coin->blocksrecv,coin->longestchain);
coin->isRT = 1;
if ( coin->polltimeout > 100 )
coin->polltimeout = 100;

6
iguana/iguana_realtime.c

@ -221,7 +221,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
}
if ( coin->spendvectorsaved <= 1 )
{
//printf("spendvectorsaved not yet\n");
printf("spendvectorsaved not yet\n");
return(0);
}
for (i=0; i<coin->bundlescount-1; i++)
@ -239,7 +239,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
bp = coin->current;
if ( bp == 0 || iguana_validated(coin) < bp->hdrsi )
{
//printf("bp.%p validated.%d vs hdrsi.%d\n",bp,iguana_validated(coin),bp->hdrsi);
printf("bp.%p validated.%d vs hdrsi.%d\n",bp,iguana_validated(coin),bp->hdrsi);
return(0);
}
if ( 1 && coin->RTheight > 0 && coin->spendvectorsaved != 1 && coin->bundlescount-1 != coin->balanceswritten )
@ -267,7 +267,7 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
}
}
}
//char str[65]; printf("check longest.%d RTheight.%d hwm.%d %s %p\n",coin->longestchain,coin->RTheight,coin->blocks.hwmchain.height,bits256_str(str,bp->hashes[0]),block);
char str[65]; printf("check longest.%d RTheight.%d hwm.%d %s %p\n",coin->longestchain,coin->RTheight,coin->blocks.hwmchain.height,bits256_str(str,bp->hashes[0]),block);
if ( bits256_cmp(coin->RThash1,bp->hashes[1]) != 0 )
coin->RThash1 = bp->hashes[1];
bp->lastRT = (uint32_t)time(NULL);

Loading…
Cancel
Save