File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -670,10 +670,11 @@ bool CheckFinalTx(const CTransaction &tx, int flags)
670
670
// IsFinalTx() with one more than chainActive.Height().
671
671
const int nBlockHeight = chainActive.Height () + 1 ;
672
672
673
- // Timestamps on the other hand don't get any special treatment,
674
- // because we can't know what timestamp the next block will have,
675
- // and there aren't timestamp applications where it matters.
676
- // However this changes once median past time-locks are enforced:
673
+ // BIP113 will require that time-locked transactions have nLockTime set to
674
+ // less than the median time of the previous block they're contained in.
675
+ // When the next block is created its previous block will be the current
676
+ // chain tip, so we use that to calculate the median time passed to
677
+ // IsFinalTx() if LOCKTIME_MEDIAN_TIME_PAST is set.
677
678
const int64_t nBlockTime = (flags & LOCKTIME_MEDIAN_TIME_PAST)
678
679
? chainActive.Tip ()->GetMedianTimePast ()
679
680
: GetAdjustedTime ();
You can’t perform that action at this time.
0 commit comments