neobytes/src/policy
Mark Friedenbach 9d55050773 Add rules--presently disabled--for using GetMedianTimePast as endpoint for lock-time calculations
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 time of a block in order to collect more fees by including transactions that by wall clock determination have not yet matured. By using CBlockIndex::GetMedianTimePast from the prior block instead, the self-interested miner no longer gains from generating blocks with fraudulent timestamps. Users can compensate for this change by simply adding an hour (3600 seconds) to their time-based lock times.

If enforced, this would be a soft-fork change. This commit only adds the functionality on an unexecuted code path, without changing the behaviour of Bitcoin Core.
2015-10-23 09:02:24 -07:00
..
fees.cpp typofixes (found by misspell_fixer) 2015-08-10 22:06:27 +01:00
fees.h typofixes (found by misspell_fixer) 2015-08-10 22:06:27 +01:00
policy.cpp Accept any sequence of PUSHDATAs in OP_RETURN outputs 2015-10-01 18:28:13 +02:00
policy.h Add rules--presently disabled--for using GetMedianTimePast as endpoint for lock-time calculations 2015-10-23 09:02:24 -07:00