From b039abf96ca8e18ca4b6afce6bfc6b91ab1350e4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 3 Jan 2017 14:57:13 +0200 Subject: [PATCH] Revert "disable 100000" This reverts commit d03fbd981fce86504b78d2a9582e4da988d59823. --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8e8223c1f..fe832ac0f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -550,6 +550,7 @@ CBlockTreeDB *pblocktree = NULL; // Komodo globals +#define KOMODO_TESTNET_EXPIRATION 100000 #define KOMODO_PAX #define KOMODO_ZCASH #include "komodo.h" @@ -2154,8 +2155,8 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin } bool fScriptChecks = (!fCheckpointsEnabled || pindex->nHeight >= Checkpoints::GetTotalBlocksEstimate(chainparams.Checkpoints())); - //if ( KOMODO_TESTNET_EXPIRATION != 0 && pindex->nHeight > KOMODO_TESTNET_EXPIRATION ) // "testnet" - // return(false); + if ( KOMODO_TESTNET_EXPIRATION != 0 && pindex->nHeight > KOMODO_TESTNET_EXPIRATION ) // "testnet" + return(false); // Do not allow blocks that contain transactions which 'overwrite' older transactions, // unless those are already completely spent. BOOST_FOREACH(const CTransaction& tx, block.vtx) {