From cd9bb53d60c65de9bae7bddbc586a7c7535a7512 Mon Sep 17 00:00:00 2001 From: Michael Toutonghi Date: Thu, 24 May 2018 01:14:31 -0700 Subject: [PATCH] Fix test and make active block for staking change the start of era 1 --- src/komodo_bitcoind.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 4ed66f7b1..05a94f4ac 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -1293,7 +1293,7 @@ bool verusCheckPOSBlock(int32_t slowflag, CBlock *pblock, int32_t height) } else if (!(pastBlockIndex = komodo_chainactive(height - COINBASE_MATURITY))) { - fprintf(stderr,"ERROR: invalid PoS block %s - no past block hash\n",blkHash.ToString().c_str()); + fprintf(stderr,"ERROR: invalid PoS block %s - no past block found\n",blkHash.ToString().c_str()); } else { @@ -1330,7 +1330,7 @@ bool verusCheckPOSBlock(int32_t slowflag, CBlock *pblock, int32_t height) strcpy(voutaddr, CBitcoinAddress(voutaddress).ToString().c_str()); strcpy(destaddr, CBitcoinAddress(destaddress).ToString().c_str()); strcpy(cbaddr, CBitcoinAddress(cbaddress).ToString().c_str()); - if ( !strcmp(destaddr,voutaddr) && (strcmp(destaddr,cbaddr) || (height < 6480)) ) + if ( !strcmp(destaddr,voutaddr) && ( !strcmp(destaddr,cbaddr) || (height < 10800)) ) { isPOS = true; }