From cddfebb82e9bda6f8a0b3ccb8e4ba090392d7c6a Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 22 Mar 2016 14:26:21 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 93ff71680..2f4839a1d 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1275,8 +1275,14 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr) hash2 = req->hash2; height = req->height; if ( (bp= req->bp) != 0 && req->bundlei >= 0 && req->bundlei < bp->n ) + { + if ( bp->emitfinish != 0 ) + { + printf("skip emitting bundle [%d:%d]\n",bp->hdrsi,req->bundlei); + return(0); + } block = bp->blocks[req->bundlei]; - else block = 0; + } else block = 0; if ( priority == 0 && bp != 0 && req->bundlei >= 0 && req->bundlei < bp->n && req->bundlei < coin->chain->bundlesize && block != 0 && (block->fpipbits != 0 || block->queued != 0) ) { if ( 1 && priority != 0 )