From ba1587fd3772dd50e3fee95a760e1df513d334a3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 8 May 2018 18:55:16 +0300 Subject: [PATCH] Test --- src/miner.cpp | 2 ++ src/wallet/rpcwallet.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/miner.cpp b/src/miner.cpp index c2ba5e78e..a33085820 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -414,6 +414,8 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) if ( (siglen= komodo_staked(txStaked,pblock->nBits,&blocktime,&txtime,&utxotxid,&utxovout,&utxovalue,utxosig)) > 0 ) { CAmount txfees = 0; + if ( GetAdjustedTime() < pblock->nTime-30 ) + return(0); pblock->vtx.push_back(txStaked); pblocktemplate->vTxFees.push_back(txfees); pblocktemplate->vTxSigOps.push_back(GetLegacySigOpCount(txStaked)); diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 702466c74..4cc79cfdb 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4625,7 +4625,7 @@ int32_t komodo_staked(CMutableTransaction &txNew,uint32_t nBits,uint32_t *blockt for (i=0; i