# Modifying BIP54 to Support Future nTime Soft Fork

**URL:** <https://delvingbitcoin.org/t/modifying-bip54-to-support-future-ntime-soft-fork/2163>\
**Category:** Protocol Design\
**Tags:** softfork\
**Created:** [December 15, 2025, 12:31am UTC](https://delvingbitcoin.org/t/modifying-bip54-to-support-future-ntime-soft-fork/2163 "2025-12-15T00:31:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ajtowns](https://delvingbitcoin.org/user_avatar/delvingbitcoin.org/ajtowns/32/417_2.png) [@ajtowns](https://delvingbitcoin.org/u/ajtowns)\
**Post date:** [December 15, 2025, 3:13am UTC](https://delvingbitcoin.org/t/modifying-bip54-to-support-future-ntime-soft-fork/2163/2 "2025-12-15T03:13:31Z")

</div>

That’s not “really” a soft fork, in that it would make the chain’s mediantime lag signficantly behind real time, so that transactions with an nTimeLock set by timestamp rather than block height would not be spendable at the time they were expected to be. That’s somewhat confiscatory, particularly if the timelock setting is enforced by OP\_CLTV.

The “obvious” fix to the nTime overflow issue is to calculate a 64 bit nTime64 from the 32 bit nTime something like:

```auto
    uint64_t mediantime = pindexPrev->GetMedianTime();
    uint64_t nTimeHigh = mediantime & 0xFFFFFFFF00000000ull;
    uint64_t blockntime = nTimeHigh | uint32_t{block.nTime};
    if (blockntime < mediantime) blockntime + 0x100000000ull;

```

That’s a hard fork (but only compared to the chain stopping entirely), and means that a 64 bit replacement for timestamp-based nLockTime would be needed for that feature to still be usable, but otherwise seems pretty straightforward and non-intrusive.

---

_[View the full topic](https://delvingbitcoin.org/t/modifying-bip54-to-support-future-ntime-soft-fork/2163)._
