BIP-113: Mempool-only median time-past as endpoint for lock-time calculations by maaku · Pull Request #6566 · bitcoin/bitcoin

The lock-time code currently uses CBlock::nTime as the cutoff point for time based locked transactions. This has the unfortunate outcome of creating a perverse incentive for miners to lie about the...