From c062116c58b1c241c8e6471f12d05b102a437fc5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 2 Feb 2017 16:24:08 +0200 Subject: [PATCH] test --- src/pow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pow.cpp b/src/pow.cpp index fea53be21..b55bff37d 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -157,6 +157,10 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in // Check proof of work matches claimed amount if ( UintToArith256(hash) > bnTarget ) { + for (i=0; i<66; i++) + if ( komodo_chainactive(height-i) == 0 ) + break; + if ( i == 66 ) { if ( height > 180000 && KOMODO_REWIND == 0 && komodo_chainactive(height) != 0 ) {