MarcoFalke
79bf1a0fa2
Merge bitcoin/bitcoin#24732 : Remove buggy and confusing IncrementExtraNonce
...
cccc4e879a8cb9d858a88ea46b28ea27ab79ca55 Remove nHeightEnd and nHeight in generateBlocks helper (MarcoFalke)
fa38b1c8bd29e2c792737f6481ab928e46396b7e Remove buggy and confusing IncrementExtraNonce (MarcoFalke)
Pull request description:
IncrementExtraNonce has many issues:
* It is test-only code, but part of bitcoind
* It is using the block height of the tip, as opposed to the block's previous block as reference for the new height. See https://github.com/bitcoin/bitcoin/issues/24730#issuecomment-1085586193
* It has no use case in regtest testing. With a low difficulty the extra nonce won't be incremented. With a high difficulty the test-only functions are clumsy to handle anyway. For example, the generate* RPCs will return an empty array once they reached `maxtries`, as opposed to an error. Also the calls can't be aborted early unless the node shuts down completely. So I think it is fine to just remove the extra nonce functionality and leave it to the outside to implement, if needed. For example, a wrapper script can call the `generate*` RPCs once every second, to use the timestamp as extra nonce.
ACKs for top commit:
ajtowns:
ACK cccc4e879a8cb9d858a88ea46b28ea27ab79ca55
Tree-SHA512: d8a3989ad280ebd4b1b574159b3a396b8a42134347e6be3c88445162d86624d221c416456f45ae75aea62ed8c8a1a9bb3a2532924abca2ef7a879cb8e6b15654
2022-04-06 11:12:10 +02:00
..
2022-04-04 09:01:19 +01:00
2022-02-01 11:19:18 +01:00
2022-03-29 10:15:33 +01:00
2022-03-25 14:11:18 +01:00
2021-09-29 14:10:29 +02:00
2022-02-17 03:42:08 +09:00
2022-03-09 14:32:47 -05:00
2022-03-02 12:09:27 +01:00
2022-03-01 18:32:01 +01:00
2021-10-05 11:10:47 -04:00
2022-03-02 15:25:48 +01:00
2021-12-30 19:36:57 +02:00
2022-02-04 22:47:49 +08:00
2022-04-06 11:12:10 +02:00
2022-02-14 16:01:26 -05:00
2022-02-19 09:35:10 +01:00
2022-04-04 16:01:24 +02:00
2022-04-06 11:12:10 +02:00
2022-04-05 13:22:09 +02:00
2021-12-15 09:19:50 -05:00
2022-04-03 13:04:29 +01:00
2022-04-06 11:12:10 +02:00
2021-10-11 20:45:56 +08:00
2022-04-04 13:44:10 +02:00
2022-04-04 09:01:19 +01:00
2022-01-31 16:53:12 +01:00
2021-11-12 11:46:34 +01:00
2021-09-07 09:11:10 +02:00
2022-04-04 09:01:19 +01:00
2021-12-30 19:36:57 +02:00
2021-12-28 21:54:51 +01:00
2022-03-25 08:22:24 +00:00
2022-02-25 09:53:10 +09:00
2022-01-13 15:56:59 +01:00
2022-01-28 19:27:25 +00:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-02-25 09:43:54 +01:00
2021-12-06 14:17:41 +13:00
2022-04-04 09:01:19 +01:00
2021-08-17 16:54:47 +08:00
2022-02-22 15:36:19 +00:00
2021-08-17 16:54:47 +08:00
2022-03-30 20:00:27 +01:00
2021-08-17 16:54:47 +08:00
2022-03-25 15:30:20 +00:00
2021-08-17 16:54:47 +08:00
2022-02-22 15:36:19 +00:00
2021-08-17 16:54:47 +08:00
2022-02-22 15:36:19 +00:00
2022-01-06 11:29:55 -05:00
2022-01-25 10:49:46 +01:00
2022-01-31 09:23:54 +01:00
2022-03-25 14:11:18 +01:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-02-22 15:15:27 +01:00
2021-12-30 19:36:57 +02:00
2022-02-22 15:36:19 +00:00
2022-02-22 15:36:19 +00:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-03-29 10:15:33 +01:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-03-30 20:00:27 +01:00
2021-12-30 19:36:57 +02:00
2022-03-30 20:11:15 +01:00
2022-01-07 13:37:47 -05:00
2021-12-30 19:36:57 +02:00
2022-01-02 11:40:31 +01:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-01-06 22:14:16 -05:00
2021-08-24 11:30:09 +02:00
2021-06-16 10:48:58 +02:00
2021-12-30 19:36:57 +02:00
2022-02-03 18:35:52 +08:00
2022-03-24 11:36:37 +01:00
2021-12-30 19:36:57 +02:00
2022-01-02 11:40:31 +01:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-03-10 12:01:54 +01:00
2022-03-10 12:01:54 +01:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-04-05 15:38:14 +02:00
2022-02-22 15:36:19 +00:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-02-03 18:35:52 +08:00
2022-02-03 18:35:52 +08:00
2022-04-06 09:25:56 +02:00
2022-03-16 16:56:29 +01:00
2021-09-24 15:40:04 +08:00
2021-10-15 01:02:45 +00:00
2021-10-21 09:37:30 +08:00
2022-02-28 16:59:56 +01:00
2022-02-13 20:59:07 +00:00
2022-03-07 13:29:46 -05:00
2021-12-20 10:53:01 -05:00
2021-12-20 10:53:01 -05:00
2022-04-06 09:25:56 +02:00
2021-10-11 20:46:25 +08:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-04-04 09:01:19 +01:00
2022-03-18 11:35:58 +00:00
2021-12-14 18:58:45 +01:00
2021-12-30 19:36:57 +02:00
2022-04-04 09:01:19 +01:00
2022-03-25 15:16:00 +00:00
2022-02-11 15:21:52 +01:00
2022-02-11 15:21:52 +01:00
2022-03-02 09:33:03 +01:00
2022-03-02 09:33:03 +01:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-01-02 11:40:31 +01:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-01-02 11:40:31 +01:00
2022-02-02 17:22:42 +01:00
2022-01-30 08:59:10 -03:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-04-06 09:25:56 +02:00
2022-03-10 12:01:53 +01:00
2022-03-24 11:36:37 +01:00
2022-01-14 13:27:41 +01:00
2022-01-02 11:52:11 +01:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-01-02 11:13:40 +01:00
2022-02-09 17:21:04 +01:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2021-12-30 19:36:57 +02:00
2022-03-02 15:40:35 +01:00
2022-03-02 15:40:30 +01:00
2021-07-05 08:59:38 +03:00
2022-03-15 01:33:52 +00:00
2022-03-15 01:33:52 +00:00
2022-04-05 15:38:14 +02:00
2022-03-10 13:05:29 +01:00
2022-04-04 09:01:19 +01:00
2022-03-21 13:38:08 +01:00
2021-07-20 13:12:42 +01:00
2021-12-30 19:36:57 +02:00
2022-01-02 11:40:31 +01:00
2022-04-05 16:18:42 +02:00
2022-03-17 07:23:43 +01:00
2022-02-25 16:06:27 -05:00
2022-01-28 18:07:08 +10:00
2022-01-28 08:46:03 +01:00
2022-01-06 22:14:16 -05:00
2021-12-30 19:36:57 +02:00