From bb6d8dddbd11b71b18286a8b980e0bd23632f5e6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 6 Apr 2016 00:47:04 -0500 Subject: [PATCH] test --- iguana/iguana_recv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 0b594081c..af0ddae4c 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -934,7 +934,8 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana_peer *addr,struct iguana_bundlereq *req,struct iguana_block *origblock,int32_t numtx,int32_t datalen,int32_t recvlen,int32_t *newhwmp) { struct iguana_bundle *bp=0,*prev; int32_t numsaved=0,bundlei = -2; struct iguana_block *block,*tmpblock; char str[65]; bits256 hash2; - iguana_blockQ("prev",coin,0,-1,origblock->RO.prev_block,1); + if ( bits256_nonz(origblock->RO.prev_block) != 0 ) + iguana_blockQ("prev",coin,0,-1,origblock->RO.prev_block,1); if ( (bp= iguana_bundleset(coin,&block,&bundlei,origblock)) != 0 && bp == coin->current && block != 0 && bp->speculative != 0 && bundlei >= 0 ) { if ( bp->speculative != 0 && bp->numspec <= bundlei )