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 )