Mark Friedenbach
a1d3c6fb9d
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 21:33:31 +01:00
..
2015-06-23 09:03:09 +02:00
2015-10-23 21:33:31 +01:00
2015-03-06 15:54:53 +01:00
2015-06-03 15:16:37 +02:00
2015-09-22 00:43:15 +00:00
2015-10-08 17:48:51 +02:00
2015-10-09 15:31:04 +02:00
2015-10-08 17:48:51 +02:00
2015-04-22 14:03:10 -07:00
2015-05-15 11:44:58 +02:00
2015-10-23 13:35:06 +02:00
2015-09-22 00:43:15 +00:00
2015-04-24 16:11:23 +02:00
2015-09-22 00:43:15 +00:00
2015-04-04 12:58:14 +02:00
2015-04-04 12:58:14 +02:00
2015-03-06 17:21:59 +01:00
2015-04-20 13:29:22 +02:00
2015-02-15 11:34:02 -05:00
2015-05-02 15:23:59 +00:00
2015-05-22 02:56:55 +00:00
2015-04-16 19:58:48 +02:00
2015-05-22 02:56:55 +00:00
2015-09-22 00:43:11 +00:00
2015-05-22 02:56:55 +00:00
2015-05-14 12:50:41 -04:00
2015-10-02 12:17:49 +02:00
2015-10-02 12:17:49 +02:00
2015-05-02 15:23:59 +00:00
2015-05-14 01:02:00 -04:00
2015-05-15 16:12:30 +02:00
2015-03-09 16:06:14 +01:00
2015-05-01 11:21:27 +00:00
2015-06-25 17:10:09 +02:00
2015-05-06 11:38:39 +02:00
2015-05-06 11:38:39 +02:00
2015-05-01 11:21:27 +00:00
2015-10-09 18:18:16 +02:00
2015-05-11 17:56:48 -07:00
2015-05-11 17:56:48 -07:00
2015-10-23 10:02:53 +02:00
2015-08-20 16:37:50 +02:00
2015-05-06 17:22:46 +02:00
2015-05-06 17:22:46 +02:00
2015-10-23 14:42:05 +02:00
2015-05-14 12:50:41 -04:00
2015-05-06 18:37:49 +02:00
2015-05-06 18:37:49 +02:00
2015-03-22 15:18:55 -04:00
2015-02-03 23:30:59 -05:00
2015-09-22 00:43:13 +00:00
2015-10-23 21:33:31 +01:00
2015-10-23 21:33:31 +01:00
2015-09-22 00:43:13 +00:00
2015-07-15 10:24:49 +02:00
2015-09-22 00:43:13 +00:00
2015-05-11 17:56:48 -07:00
2015-09-22 00:43:15 +00:00
2015-05-01 11:21:27 +00:00
2015-10-23 21:33:31 +01:00
2015-04-16 10:32:47 +02:00
2015-07-28 20:15:51 +02:00
2015-10-23 10:02:53 +02:00
2015-05-14 12:50:42 -04:00
2015-10-23 10:02:53 +02:00
2015-05-26 08:59:13 +02:00
2015-04-22 03:53:25 -07:00
2015-04-22 03:53:25 -07:00
2015-04-19 11:10:23 -07:00
2015-04-19 11:10:23 -07:00
2015-05-06 17:22:46 +02:00
2015-05-06 17:22:46 +02:00
2015-02-25 18:37:06 -05:00
2015-05-27 20:10:02 +02:00
2015-09-22 00:43:13 +00:00
2015-10-08 17:50:02 +02:00
2015-04-30 16:37:18 +02:00
2015-06-03 16:23:46 +02:00
2015-04-17 13:26:47 +02:00
2015-04-17 13:26:47 +02:00
2015-05-15 16:05:28 +02:00
2015-09-22 00:43:15 +00:00
2015-05-06 16:50:05 +02:00
2015-09-22 00:43:13 +00:00
2015-05-16 17:59:23 -04:00
2015-05-14 01:02:01 -04:00
2015-03-20 12:23:44 +01:00
2015-04-24 02:28:47 -07:00
2015-09-22 00:43:15 +00:00
2015-08-20 17:14:22 +02:00
2015-03-26 00:47:51 +01:00
2015-05-11 17:58:14 -07:00
2015-09-22 00:43:11 +00:00
2015-05-13 10:36:24 -04:00
2015-04-16 19:58:48 +02:00
2015-03-12 22:17:22 +06:00
2015-09-23 14:12:55 +02:00
2015-05-14 12:50:42 -04:00
2015-04-30 23:11:52 +03:00
2015-03-24 15:29:20 -04:00
2015-05-14 01:02:00 -04:00