From 9f7e2fb3e470e456616861c59e0082caf1d07451 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 11 Jun 2016 22:28:16 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana_realtime.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 5c06b1627..cfda32da8 100755 --- a/iguana/iguana777.c +++ b/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; diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index 224b046c4..e0b022142 100755 --- a/iguana/iguana_realtime.c +++ b/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; ibundlescount-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);