From 22cc08b874af79e61b06051fc514ab5b5125bc58 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 9 Jun 2016 08:33:59 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 2 +- iguana/iguana_recv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 9a374ffe0..605044871 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -830,7 +830,7 @@ int32_t iguana_bundlehdr(struct iguana_info *coin,struct iguana_bundle *bp,int32 dist = 30 + (coin->current != 0 ? bp->hdrsi - coin->current->hdrsi : 0); if ( bp == coin->current ) dist = 3; - if ( time(NULL) > bp->hdrtime+dist && (bp == coin->current || bp->hdrsi >= coin->bundlescount-2 || (bp->numhashes < bp->n && (bp->speculative == 0 || bp->hdrsi >= coin->longestchain/bp->n))) ) //strcmp("BTC",coin->symbol) != 0 && + if ( time(NULL) > bp->hdrtime+dist && (bp == coin->current || bp->hdrsi >= coin->bundlescount-2 || (strcmp("BTC",coin->symbol) != 0 && bp->numhashes < bp->n && (bp->speculative == 0 || bp->hdrsi >= coin->longestchain/bp->n))) ) { bp->hdrtime = (uint32_t)time(NULL); queue_enqueue("hdrsQ",&coin->hdrsQ,queueitem(bits256_str(str,bp->hashes[0])),1); diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index d629f2876..9b6e5fc3e 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -815,7 +815,7 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct iguana_info *coin,struct ig bp = 0, bundlei = -2; if ( (bp= iguana_bundleset(coin,&block,&bundlei,(struct iguana_block *)&zblocks[i])) != 0 ) _iguana_chainlink(coin,block); - printf("HWM in hdr's prev[%d] bp.%p\n",i,bp); + char str[65]; printf("HWM in hdr's prev[%d] bp.%p bundlei.%d block.%p %s\n",i,bp,bundlei,block,bp!=0?bits256_str(str,bp->hashes[bundlei]):"()"); } if ( i > 0 && bits256_cmp(prevhash2,zblocks[i].RO.prev_block) == 0 ) {