From fd55cc9c725567410058060c98a379b91d7689ad Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 6 Oct 2016 12:37:09 -0300 Subject: [PATCH] test --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 9365909b7..8fc822dc7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2058,7 +2058,8 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin } bool fScriptChecks = (!fCheckpointsEnabled || pindex->nHeight >= Checkpoints::GetTotalBlocksEstimate(chainparams.Checkpoints())); - + if ( pindex->nHeight > 40000 ) // "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) {