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
..
2015-10-06 17:46:12 +02:00
2015-03-06 15:54:53 +01:00
2015-10-22 17:53:07 +02:00
2015-10-23 13:33:13 +02:00
2015-04-22 14:03:10 -07:00
2015-10-23 09:01:22 -04:00
2015-07-23 21:10:22 +02:00
2015-06-04 19:34:18 +02:00
2015-08-03 22:58:30 +01:00
2015-10-13 01:04:39 -07:00
2015-10-22 17:53:07 +02:00
2015-10-22 17:53:07 +02:00
2015-10-22 17:53:07 +02:00
2015-05-02 15:23:59 +00:00
2015-10-20 17:06:28 +02:00
2015-10-20 17:06:28 +02:00
2015-07-23 21:10:22 +02:00
2015-05-01 11:21:27 +00:00
2015-10-22 17:57:48 +00:00
2015-07-30 19:56:00 -04:00
2015-09-03 10:59:18 +02:00
2015-10-23 14:41:30 +02:00
2015-09-03 10:59:18 +02:00
2015-05-06 18:37:49 +02:00
2015-05-06 18:37:49 +02:00
2015-08-17 12:15:32 -04:00
2015-05-01 11:21:27 +00:00
2015-10-22 17:57:48 +00:00
2015-09-03 13:06:13 -07:00
2015-10-22 17:57:48 +00:00
2015-10-01 10:49:57 +02:00
2015-10-23 12:47:19 +02:00
2015-09-03 10:59:18 +02:00
2015-10-23 12:47:19 +02:00
2015-05-16 17:59:23 -04:00
2015-05-14 01:02:01 -04:00
2015-08-10 22:06:27 +01:00
2015-10-14 12:46:20 -07:00