Ryan Ofsky
fa0c473d4c
Merge bitcoin/bitcoin#31196 : Prune mining interface
...
c991cea1a0 Remove processNewBlock() from mining interface (Sjors Provoost)
9a47852d88 Remove getTransactionsUpdated() from mining interface (Sjors Provoost)
bfc4e029d4 Remove testBlockValidity() from mining interface (Sjors Provoost)
Pull request description:
There are three methods in the mining interface that can be dropped. The Template Provider doesn't need them and other application should probably not use them either.
1. `processNewBlock()` was added in 7b4d3249ce , but became unnecessary with the introduction of interfaces::BlockTemplate::submitSolution in 7b4d3249ce .
Dropping it was suggested in https://github.com/bitcoin/bitcoin/pull/30200#issuecomment-2404460342
2. `getTransactionsUpdated()`: this is used in the implementation of #31003 `waitFeesChanged`. It's not very useful generically because the mempool updates very frequently.
3. `testBlockValidity()`: it might be useful for mining application to have a way to check the validity of a block template they modified, but the Stratum v2 Template Provider doesn't do that, and this method is a bit brittle (e.g. the block needs to build on the tip).
ACKs for top commit:
TheCharlatan:
Re-ACK c991cea1a0
ryanofsky:
Code review ACK c991cea1a0 . Since last review, just rebased to avoid conflicts in surrounding code, and edited a commit message
tdb3:
code review ACK c991cea1a0
Tree-SHA512: 2138e54f920b26e01c068b24498c6a210c5c4358138dce0702ab58185d9ae148a18f04c97ac9f043646d40f8031618d80a718a176b1ce4779c237de6fb9c4a67
2024-12-18 14:44:14 -05:00
..
2024-12-04 12:46:33 +07:00
2024-12-03 11:04:10 +01:00
2024-03-01 13:13:07 -05:00
2024-12-17 10:12:31 +07:00
2024-02-27 18:28:19 +00:00
2024-10-10 12:22:12 +02:00
2024-12-04 15:09:05 -04:00
2024-12-04 15:09:05 -04:00
2024-12-18 09:20:26 +07:00
2024-12-18 09:20:26 +07:00
2024-11-12 09:24:54 -05:00
2024-06-13 13:17:57 +01:00
2024-08-29 13:49:57 +02:00
2024-06-12 14:38:39 +01:00
2024-12-18 14:44:14 -05:00
2024-11-25 21:05:11 +01:00
2024-07-08 11:12:01 +02:00
2024-12-04 15:09:05 -04:00
2024-12-18 14:44:14 -05:00
2024-11-25 15:36:05 +01:00
2024-11-04 14:59:46 -05:00
2024-07-24 09:57:49 +01:00
2024-12-17 12:55:38 -05:00
2024-08-30 21:31:39 +01:00
2024-12-05 16:55:36 +01:00
2024-12-13 14:22:25 +01:00
2024-10-25 18:09:36 +01:00
2023-12-15 15:20:54 +01:00
2024-09-14 20:33:32 +03:00
2024-10-28 12:36:19 +00:00
2023-09-05 10:13:25 +02:00
2024-07-30 14:06:58 -04:00
2024-07-30 14:06:58 -04:00
2024-09-20 12:55:22 -04:00
2024-11-11 12:47:53 -03:00
2024-11-11 12:47:53 -03:00
2023-11-21 17:37:25 +01:00
2024-08-03 21:59:54 +02:00
2023-05-04 20:57:51 +01:00
2024-08-29 13:49:57 +02:00
2024-05-30 08:35:18 -04:00
2024-05-16 10:16:08 -05:00
2024-08-06 11:03:31 +02:00
2024-08-06 11:03:31 +02:00
2023-09-10 16:11:52 -04:00
2023-09-10 16:11:52 -04:00
2024-12-03 17:38:41 -05:00
2024-10-28 12:36:19 +00:00
2024-11-20 22:55:25 +01:00
2024-10-28 12:36:19 +00:00
2024-12-04 13:20:46 -05:00
2024-10-28 12:36:19 +00:00
2024-11-20 22:55:23 +01:00
2024-10-28 12:36:19 +00:00
2024-11-20 22:55:25 +01:00
2024-10-28 12:36:19 +00:00
2024-11-20 22:55:23 +01:00
2024-08-29 13:49:57 +02:00
2024-07-08 11:12:01 +02:00
2024-05-16 10:16:08 -05:00
2023-08-17 18:28:15 +02:00
2024-09-17 09:54:18 +02:00
2024-10-28 11:38:38 -04:00
2023-05-25 19:24:05 +02:00
2024-11-14 13:41:02 -05:00
2024-11-14 13:41:02 -05:00
2024-08-27 07:00:27 +02:00
2024-12-03 18:02:37 -05:00
2024-11-15 17:16:03 +01:00
2024-10-28 12:35:49 +00:00
2024-11-11 14:14:39 +00:00
2024-11-23 15:31:39 +00:00
2024-12-04 14:09:05 -05:00
2024-12-02 13:52:34 +01:00
2023-08-14 17:38:27 -04:00
2024-06-07 13:55:23 -04:00
2024-11-26 20:47:08 -05:00
2024-12-05 14:37:47 +00:00
2024-06-07 13:55:23 -04:00
2024-07-04 22:35:29 +02:00
2024-11-30 20:19:08 +01:00
2024-11-30 20:19:08 +01:00
2023-03-15 16:42:42 +01:00
2023-03-15 16:42:42 +01:00
2024-05-16 15:03:13 -04:00
2024-08-13 07:44:31 +02:00
2023-05-20 12:08:13 +02:00
2024-08-29 13:49:57 +02:00
2024-07-24 09:39:35 +02:00
2024-01-05 17:12:38 +01:00
2024-11-04 14:59:46 -05:00
2024-08-29 13:49:57 +02:00
2024-07-08 11:12:01 +02:00
2024-12-03 10:38:21 +01:00
2024-12-04 15:09:05 -04:00
2024-07-11 19:08:46 +01:00
2024-06-26 15:28:26 -04:00
2024-06-12 16:19:50 -03:00
2024-12-18 13:58:10 -05:00
2024-09-06 09:08:10 -04:00
2024-10-27 15:38:54 +01:00
2023-08-14 17:38:27 -04:00
2024-08-04 08:52:22 +02:00
2024-08-04 08:51:36 +02:00
2024-10-01 11:31:39 +02:00
2024-10-01 11:31:39 +02:00
2024-10-25 15:02:07 -04:00
2024-10-24 18:23:30 +02:00
2024-11-04 18:46:40 +01:00
2024-04-07 14:04:45 +01:00
2024-07-08 11:12:01 +02:00
2024-05-16 10:16:08 -05:00
2024-02-28 10:05:56 -03:00
2024-11-14 09:43:47 +00:00
2024-10-01 21:55:18 -04:00
2024-05-20 16:48:19 +00:00
2024-07-08 11:12:01 +02:00
2024-12-04 15:09:05 -04:00
2024-11-13 12:13:17 +00:00
2024-08-13 07:44:31 +02:00
2024-07-01 12:39:53 -04:00
2024-10-10 12:22:12 +02:00
2024-09-10 11:20:40 -03:00
2023-12-06 11:22:42 -05:00
2023-12-02 22:03:08 +01:00
2023-11-20 14:02:27 +01:00
2024-03-21 16:41:16 +01:00
2024-05-03 14:20:44 -03:00
2024-05-03 14:20:44 -03:00
2024-11-11 14:14:39 +00:00
2024-09-02 15:43:33 +01:00
2024-09-11 17:41:26 +02:00
2024-10-26 23:44:15 +02:00
2024-10-26 23:44:15 +02:00
2024-05-16 10:16:08 -05:00
2024-07-11 19:08:46 +01:00
2024-12-16 10:39:28 +01:00
2024-08-28 19:09:51 +02:00
2024-12-16 15:23:56 +01:00
2024-10-21 23:24:17 +02:00
2024-10-21 23:24:17 +02:00
2024-10-28 12:36:19 +00:00
2024-02-15 14:43:14 +01:00
2024-02-16 17:12:52 +01:00
2024-07-08 11:12:01 +02:00
2024-08-29 13:49:57 +02:00
2024-08-13 07:44:31 +02:00
2024-11-04 18:46:40 +01:00
2024-11-04 18:46:40 +01:00
2024-05-16 18:16:46 +02:00
2024-07-08 11:12:01 +02:00
2024-07-08 11:12:01 +02:00
2024-10-28 19:13:46 -04:00
2024-12-13 18:56:37 -05:00
2024-11-14 13:41:02 -05:00
2024-09-18 20:03:47 +02:00
2024-09-18 20:03:47 +02:00
2024-11-13 13:27:01 -05:00
2024-11-13 13:27:01 -05:00
2024-10-01 21:55:18 -04:00
2024-10-24 21:23:56 -04:00
2024-08-07 20:00:28 +01:00
2024-07-24 09:15:34 +02:00
2024-09-06 17:36:18 +02:00
2023-11-16 11:36:22 +10:00
2024-12-13 16:12:30 +01:00
2024-12-13 16:12:30 +01:00
2024-10-08 15:25:47 +00:00
2024-07-25 11:01:22 +01:00
2024-07-08 11:12:01 +02:00