From 52e4ba5e8f1176180e0eff2a57eab99a981478c9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 4 Jun 2016 15:17:51 -0300 Subject: [PATCH] test --- iguana/iguana_ramchain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 732a23cd3..e8937b3cc 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -2328,7 +2328,7 @@ struct iguana_ramchain *iguana_bundleload(struct iguana_info *coin,struct iguana // bp->hashes[i] = bRO->hash2; if ( (prev= block->hh.prev) != 0 ) prev2 = prev->hh.prev; - if ( strcmp(coin->symbol,"BTCD") == 0 && bp->bundleheight > 20000 && prev != 0 && iguana_targetbits(coin,block,prev,prev2,1,coin->chain->targetspacing,coin->chain->targettimespan) != block->RO.bits ) + if ( prev2 != 0 && prev != 0 && strcmp(coin->symbol,"BTCD") == 0 && bp->bundleheight > 20000 && prev != 0 && iguana_targetbits(coin,block,prev,prev2,1,coin->chain->targetspacing,coin->chain->targettimespan) != block->RO.bits ) { printf("nbits target error %x != %x ht.%d\n",iguana_targetbits(coin,block,prev,prev2,1,coin->chain->targetspacing,coin->chain->targettimespan),block->RO.bits,block->height); } //else printf(">>>>>>>>>> matched nbits %x ht.%d\n",block->RO.bits,block->height);