From 6d7537dedb5fe173f4e648935a3746659cd64b07 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 19 Apr 2018 20:48:27 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 00adc28a6..10a95d3f7 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -1086,6 +1086,8 @@ uint32_t komodo_stake(int32_t validateflag,arith_uint256 bnTarget,int32_t nHeigh return(0); if ( (minage= nHeight*3) > 6000 ) minage = 6000; + if ( blocktime < prevtime+57 ) + blocktime = prevtime+57; if ( blocktime > txtime+minage && (pindex= komodo_chainactive(nHeight>200?nHeight-200:1)) != 0 ) { vcalc_sha256(0,(uint8_t *)&addrhash,(uint8_t *)address,(int32_t)strlen(address)); @@ -1291,7 +1293,7 @@ int32_t komodo_checkPOW(int32_t slowflag,CBlock *pblock,int32_t height) { if ( (is_PoSblock= komodo_is_PoSblock(slowflag,height,pblock,bnTarget)) == 0 ) { - if ( ASSETCHAINS_STAKED == 100 || height <= 100 ) // only PoS allowed! + if ( ASSETCHAINS_STAKED == 100 && height > 100 ) // only PoS allowed! return(-1); else {