From fc0250b8c2d4d28da3fe700cb7d66c6e3ab88a2d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 10 Sep 2016 06:38:21 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 3 ++- iguana/iguana_recv.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index e2a6d6f9f..948ba3e4c 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -1348,7 +1348,7 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch bp->issued[j] = block->issued; } } - if ( 0 && bp->hdrsi >= starti && bp->hdrsi < lasti ) + if ( bp->hdrsi >= starti && bp->hdrsi < lasti ) iguana_bundlemissings(myinfo,coin,bp,now); } bp->metric = coin->bundlescount - bp->hdrsi; @@ -1441,6 +1441,7 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch if ( bp != coin->current ) { printf("new 1st.%d\n",bp->hdrsi); + iguana_bundleissuemissing(myinfo,coin,bp,1 + (rand() % 3),1.); if ( bp->queued == 0 ) iguana_bundleQ(myinfo,coin,bp,0); } diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index b537e149d..b174655a6 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -957,7 +957,7 @@ uint32_t iguana_allhashcmp(struct supernet_info *myinfo,struct iguana_info *coin block->hh.prev = prev; } //if ( bp->hdrsi < coin->MAXBUNDLES ) - iguana_blockQ("allhashes",coin,bp,i,blockhashes[i],1); + iguana_blockQ("allhashes",coin,bp,i,blockhashes[i],0); } else printf("no allhashes block.%p or mismatch.%p\n",block,bp->blocks[i]); prev = block; }