From 05457078d777fce7b0625a47ee8f207b29f5970a Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 15 Sep 2016 12:14:56 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index c6ca8e22b..0d2983eeb 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1194,14 +1194,14 @@ struct iguana_bundle *iguana_bundleset(struct supernet_info *myinfo,struct iguan bundlei = ((mainchain->height+i) % coin->chain->bundlesize); if ( hdrsi < coin->bundlescount && (bp= coin->bundles[hdrsi]) != 0 ) { - if ( (tmp= bp->blocks[hdrsi]) != 0 ) + if ( (tmp= bp->blocks[hdrsi]) != 0 && tmp->height == mainchain->height+i ) { iguana_bundle_set(coin,tmp,mainchain->height+i); iguana_RTnewblock(myinfo,coin,tmp); - } + } else break; } } - if ( mainchain != hwmblock ) + if ( i == n && mainchain != hwmblock ) { iguana_hwmchain_set(coin,mainchain,mainchain->height); // trigger reprocess iguana_RTnewblock(myinfo,coin,mainchain);