merge-script
084eee0291
Merge bitcoin/bitcoin#32743 : refactor: use std::vector<std::byte> for BlockManager::ReadRawBlock()
...
6ecb9fc65f9a5654663304757880e50d73cf4a84 chore: use `std::vector<std::byte>` for `BlockManager::ReadRawBlock()` (Roman Zeyde)
Pull request description:
Following [this comment](https://github.com/bitcoin/bitcoin/pull/32540#discussion_r2135820932 ), this PR changes `BlockManager::ReadRawBlock()` to accept a `std::vector<std::byte>` instead of `std::vector<uint8_t>`, in order to avoid casts during its invocations.
It also adds a new `SpanReader` constructor to allow reading from a span of `std::byte`s (in addition to span of `uint8_t`).
ACKs for top commit:
l0rinc:
ACK 6ecb9fc65f9a5654663304757880e50d73cf4a84
maflcko:
re-ACK 6ecb9fc65f9a5654663304757880e50d73cf4a84
TheCharlatan:
Re-ACK 6ecb9fc65f9a5654663304757880e50d73cf4a84
Tree-SHA512: b0976c34b8da4fa1e6d805a89de2883f48ba431a71069e8c1ae450f48e425cc41aff1a5d479a7d40312a972aaf1f92e9478a985a14a1357c6b3e564e988d03e5
2025-06-16 09:52:53 +01:00
..
2025-06-13 19:19:44 +03:00
2025-06-11 15:08:23 -07:00
2025-05-08 16:49:58 +01:00
2025-06-03 19:56:55 +02:00
2025-06-03 19:56:55 +02:00
2025-06-10 20:22:18 -04:00
2025-02-13 12:30:15 -05:00
2025-06-12 16:01:04 -07:00
2025-05-29 13:57:08 -04:00
2025-06-03 19:56:55 +02:00
2025-05-30 16:51:49 +01:00
2025-02-21 10:43:01 +01:00
2025-05-13 18:07:47 +01:00
2025-06-13 19:19:44 +03:00
2025-05-30 10:12:38 -04:00
2024-07-08 11:12:01 +02:00
2025-06-11 15:08:23 -07:00
2025-06-13 19:19:44 +03:00
2025-05-14 14:00:43 -07:00
2025-05-13 11:31:34 +01:00
2025-05-19 16:40:33 +01:00
2025-06-12 16:01:04 -07:00
2025-05-20 09:43:21 +01:00
2025-06-03 19:56:55 +02:00
2025-06-13 17:27:39 -07:00
2025-06-13 19:19:44 +03:00
2025-06-03 15:13:54 +02:00
2024-10-28 12:36:19 +00:00
2024-07-30 14:06:58 -04:00
2025-03-23 21:58:39 +01: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
2025-01-09 10:11:46 -05:00
2025-04-07 10:45:13 -04:00
2025-01-14 19:21:37 +01:00
2025-05-19 16:40:33 +01:00
2025-06-03 15:13:54 +02:00
2025-03-12 19:46:54 +01:00
2025-06-03 15:13:57 +02:00
2025-06-03 15:13:57 +02:00
2025-06-03 19:56:55 +02:00
2025-03-12 19:46:54 +01:00
2025-05-24 13:49:32 +02:00
2025-06-10 15:14:24 +02:00
2025-05-15 19:48:38 +02:00
2025-06-10 15:14:24 +02:00
2025-06-10 15:14:24 +02:00
2025-05-17 09:36:25 +02:00
2025-06-10 15:14:24 +02:00
2025-01-15 12:15:40 +01:00
2025-06-10 15:14:24 +02:00
2025-05-09 15:07:04 +02:00
2025-05-12 14:49:17 -04:00
2025-06-10 15:14:24 +02:00
2025-01-16 21:06:21 +00:00
2025-05-28 11:46:30 -07:00
2024-07-08 11:12:01 +02:00
2022-12-24 23:49:50 +00:00
2025-03-13 11:13:13 +00:00
2025-05-15 22:12:24 +02:00
2025-06-03 15:13:57 +02:00
2024-11-14 13:41:02 -05:00
2025-03-06 15:39:58 -06:00
2025-05-19 22:06:48 +00:00
2025-05-20 09:30:41 +01:00
2025-05-29 11:18:36 +01:00
2025-06-03 19:56:55 +02:00
2025-05-28 20:22:00 +01:00
2024-12-04 14:09:05 -05:00
2025-06-03 15:13:57 +02:00
2025-03-12 19:46:54 +01:00
2024-11-26 20:47:08 -05:00
2025-04-22 13:16:54 +01:00
2025-05-19 16:40:33 +01:00
2025-04-07 15:59:41 +02:00
2025-04-07 15:59:41 +02:00
2025-04-30 14:51:21 +02:00
2025-04-30 14:51:21 +02:00
2025-02-21 10:41:27 +01:00
2025-01-21 00:38:03 +10:00
2025-05-06 12:21:32 -07:00
2024-08-13 07:44:31 +02:00
2024-08-29 13:49:57 +02:00
2024-07-24 09:39:35 +02:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-03-04 14:23:18 -05:00
2025-05-19 16:40:33 +01:00
2025-05-09 17:07:28 +02:00
2025-06-06 15:31:36 -07:00
2024-11-04 17:08:21 +01:00
2025-04-22 13:16:54 +01:00
2025-06-13 19:19:44 +03:00
2025-01-16 21:06:21 +00:00
2025-06-03 15:13:57 +02:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2024-10-01 11:31:39 +02:00
2024-10-01 11:31:39 +02:00
2024-11-04 14:19:40 -05:00
2024-10-29 11:58:51 -04:00
2024-11-04 18:46:40 +01:00
2024-07-08 11:12:01 +02:00
2025-02-21 10:41:27 +01:00
2025-06-13 19:19:44 +03:00
2024-11-13 14:09:58 +01:00
2024-07-08 11:12:01 +02:00
2025-05-20 12:21:17 -07:00
2025-05-10 03:31:30 +00:00
2025-06-03 08:09:21 +01:00
2025-03-12 19:46:54 +01:00
2025-05-15 22:11:52 +02:00
2025-06-03 19:56:55 +02:00
2025-05-15 14:59:03 +02:00
2025-05-15 14:59:03 +02:00
2025-04-22 17:11:24 +10:00
2025-06-03 15:13:57 +02:00
2025-05-14 09:35:32 +02:00
2024-10-26 23:44:15 +02:00
2024-10-26 23:44:15 +02:00
2025-05-14 14:00:43 -07:00
2025-05-14 14:00:43 -07:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-05-14 22:55:10 -07:00
2025-03-20 13:41:54 +08:00
2025-05-08 16:49:58 +01:00
2025-06-13 19:19:44 +03:00
2025-05-10 03:31:30 +00:00
2025-05-14 15:41:20 +02:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-04-14 12:04:06 +02:00
2025-06-13 19:19:44 +03:00
2025-02-21 10:43:01 +01:00
2025-05-22 17:57:33 +01:00
2024-07-08 11:12:01 +02:00
2025-01-15 12:16:08 +01:00
2025-05-13 12:09:40 +02:00
2025-05-13 12:09:40 +02:00
2025-04-07 15:59:41 +02:00
2025-01-15 15:44:55 +01:00
2025-06-03 08:09:28 +01:00
2025-06-03 19:56:55 +02:00
2024-12-31 00:04:20 -03:00
2024-12-31 00:04:20 -03:00
2025-02-07 13:55:57 -05:00
2025-02-07 13:55:57 -05:00
2025-06-03 15:13:57 +02:00
2025-05-19 16:40:33 +01:00
2025-04-09 15:59:59 +01:00
2025-04-09 15:59:59 +01:00
2025-06-12 16:01:04 -07:00
2025-06-12 16:01:04 -07:00
2024-10-08 15:25:47 +00:00
2025-05-19 16:40:33 +01:00
2025-01-21 00:38:03 +10:00
2025-04-30 14:51:21 +02:00
2025-04-30 14:51:21 +02:00
2024-07-08 11:12:01 +02:00