From 05912706be9eaa7788e643bad4f91e437a3d7589 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 Apr 2018 15:02:52 +0300 Subject: [PATCH 1/3] Change to 792000 --- src/pow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pow.cpp b/src/pow.cpp index ac36dc0a2..d8fc47f86 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -169,7 +169,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in flag = ((height % KOMODO_ELECTION_GAP) > 64 || (height % KOMODO_ELECTION_GAP) == 0); else if ( height == 790833 ) flag = 1; - else if ( special2 < 0 && height > 800000 ) + else if ( special2 < 0 && height > 792000 ) flag = 0; } if ( flag != 0 || special2 > 0 ) From 204e6b350056fb1289e04c3d26dc0bc889ab9275 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 Apr 2018 15:21:38 +0300 Subject: [PATCH 2/3] Fix --- src/pow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pow.cpp b/src/pow.cpp index d8fc47f86..5db2aedb2 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -171,11 +171,11 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in flag = 1; else if ( special2 < 0 && height > 792000 ) flag = 0; - } - if ( flag != 0 || special2 > 0 ) - { - //fprintf(stderr,"EASY MINING ht.%d\n",height); - bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow); + if ( flag != 0 || special2 > 0 ) + { + //fprintf(stderr,"EASY MINING ht.%d\n",height); + bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow); + } } } if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(params.powLimit)) From 7fd353f0224fdbee339f01d1e02f02cafc21e720 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 Apr 2018 15:25:05 +0300 Subject: [PATCH 3/3] Test --- src/komodo_bitcoind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 958578b63..d5eab1b0f 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -843,7 +843,7 @@ int32_t komodo_minerids(uint8_t *minerids,int32_t height,int32_t width) // depre int32_t komodo_is_special(uint8_t pubkeys[66][33],int32_t mids[66],int32_t height,uint8_t pubkey33[33],uint32_t timestamp) { int32_t i,notaryid=0,minerid,limit,nid; //uint8_t _pubkey33[33]; - if ( height >= 225000 ) + if ( height >= 790000 ) { if ( mids[0] >= 0 ) {