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