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;