From a9980a36f12166220acf2eff4bf4b9e22e84917d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 23 Oct 2016 18:49:14 -0300 Subject: [PATCH] test --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 16cb93d9d..5a5c7df9b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -700,7 +700,10 @@ bool IsFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime) if ((int64_t)tx.nLockTime < ((int64_t)tx.nLockTime < LOCKTIME_THRESHOLD ? (int64_t)nBlockHeight : nBlockTime)) return true; if ( (int64_t)tx.nLockTime >= LOCKTIME_THRESHOLD && (int64_t)tx.nLockTime < nBlockTime-3600 ) + { + fprintf(stderr,"IsFinalTx reject locktime %u vs nBlockTime %u\n",tx.nLockTime,(uint32_t)nBlockTime); return(false); // need to prevent pastdating tx + } BOOST_FOREACH(const CTxIn& txin, tx.vin) if (!txin.IsFinal()) return false;