merge-script
38c8474d0d
Merge bitcoin/bitcoin#33914 : Change Parse descriptor argument to string_view
...
c0bfe72f6e Change Parse descriptor argument to string_view (Sjors Provoost)
Pull request description:
While investigating a silent merge conflict in #33135 I noticed that #32983 changed the descriptor `Parse` function signature from `const std::string& descriptor` to `std::span<const char> descriptor`.
Calling that new version of `Parse` with a string literal will trigger a confusing "Invalid characters in payload" due to the trailing "\0".
It can be worked around by having (the test) wrap string literals in `std::string()`, but that's easy to forget.
Using `string_view` is easier and more compact than (as a previous version of this PR did) checking for trailing `\0`.
Also add a test.
ACKs for top commit:
maflcko:
review ACK c0bfe72f6e 🍨
enirox001:
tACK c0bfe72
stickies-v:
ACK c0bfe72f6e
rkrux:
crACK c0bfe72f6e
Tree-SHA512: 6b20307f834dae66826c8763f6c2ba0071f4e369375184cb5ff8543b85220fcaf33a47ddb065e418d1af3ed9a3fac401a7854f8924f52aab2b000b1f65328f2c
2025-11-27 09:53:11 +00:00
..
2025-11-25 10:35:11 +00:00
2025-10-28 22:41:07 +00:00
2025-09-16 06:26:01 -04:00
2025-11-04 22:51:25 +01:00
2025-08-07 09:27:25 +01:00
2025-11-11 11:12:50 +00:00
2025-11-12 09:48:10 -05:00
2025-09-17 04:57:09 -04:00
2025-11-12 10:03:48 -05:00
2025-11-10 09:56:27 +00:00
2025-11-25 12:31:17 +00:00
2025-10-16 13:49:49 +01:00
2025-10-13 12:33:23 +01:00
2025-11-25 20:22:39 +01:00
2025-11-25 10:35:11 +00:00
2025-08-11 16:47:51 +01:00
2025-11-21 12:38:03 +00:00
2025-11-25 10:35:11 +00:00
2025-11-20 13:44:30 +01:00
2025-10-15 09:49:11 +01:00
2025-05-23 10:09:39 +01:00
2025-11-27 09:53:11 +00:00
2025-11-11 11:12:50 +00:00
2025-11-25 10:35:11 +00:00
2025-11-19 09:28:44 +00:00
2025-10-28 15:33:57 +00:00
2025-11-25 12:24:26 +00:00
2025-06-03 15:13:54 +02:00
2025-07-10 11:24:40 +02:00
2025-09-12 22:28:41 +02:00
2025-07-25 09:50:50 +02:00
2025-05-19 16:40:33 +01:00
2025-06-03 15:13:54 +02: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-11-04 08:32:13 +01:00
2025-06-10 15:14:24 +02:00
2025-10-06 19:41:35 +01: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-06-10 15:14:24 +02:00
2025-10-06 19:41:35 +01:00
2025-11-18 14:06:54 -08:00
2025-06-10 15:14:24 +02:00
2025-10-06 19:41:35 +01:00
2025-08-27 03:33:32 +10:00
2025-08-27 03:33:32 +10:00
2025-10-02 12:53:55 +01:00
2025-10-02 12:53:55 +01:00
2025-10-28 16:08:44 +01:00
2025-10-28 16:08:44 +01:00
2025-07-25 09:50:50 +02:00
2025-06-03 15:13:57 +02:00
2025-09-03 11:23:30 +01:00
2025-05-19 22:06:48 +00:00
2025-11-13 09:33:36 +01:00
2025-05-29 11:18:36 +01:00
2025-10-11 17:25:09 -04:00
2025-11-12 19:50:11 -05:00
2025-10-30 17:51:40 +01:00
2025-10-11 21:48:04 -04:00
2025-10-29 12:09:19 -04:00
2025-04-22 13:16:54 +01:00
2025-11-10 08:58:34 -08:00
2025-05-19 16:40:33 +01:00
2025-08-13 15:47:39 -07:00
2025-08-13 15:47:48 -07:00
2025-04-30 14:51:21 +02:00
2025-08-14 10:17:30 +10:00
2025-07-25 09:50:50 +02:00
2025-06-16 15:33:19 +02:00
2025-10-30 17:51:38 +01:00
2025-09-12 22:28:41 +02:00
2025-09-12 22:28:41 +02:00
2025-07-03 06:26:23 -04:00
2025-09-16 06:26:01 -04:00
2025-06-09 14:17:33 +02:00
2025-06-09 14:17:33 +02:00
2025-11-25 10:35:11 +00:00
2025-06-03 15:13:57 +02:00
2025-10-14 16:25:52 -04:00
2025-09-30 11:06:43 -07:00
2025-11-04 08:31:56 +01:00
2025-11-04 08:31:56 +01:00
2025-09-08 11:18:51 +02:00
2025-07-17 12:43:04 -04:00
2025-08-11 15:53:34 +01:00
2025-08-11 16:47:51 +01:00
2025-09-30 11:06:43 -07:00
2025-10-14 16:25:52 -04:00
2025-11-25 10:35:11 +00:00
2025-09-22 10:46:26 +10:00
2025-11-20 10:42:10 +01:00
2025-10-24 10:33:51 -07:00
2025-10-02 12:53:55 +01:00
2025-10-02 12:53:55 +01:00
2025-09-16 06:26:01 -04:00
2025-08-04 13:38:26 -04:00
2025-07-25 09:50:50 +02:00
2025-07-25 09:50:50 +02:00
2025-10-02 12:53:55 +01:00
2025-10-02 12:53:55 +01:00
2025-04-22 17:11:24 +10:00
2025-06-03 15:13:57 +02:00
2025-07-25 16:23:37 -07:00
2025-07-08 20:00:51 +01:00
2025-07-08 20:00:51 +01:00
2025-09-30 11:06:43 -07:00
2025-11-17 14:08:20 -08:00
2025-09-30 11:06:09 -07:00
2025-09-30 11:06:09 -07:00
2025-07-25 09:50:50 +02:00
2025-07-16 13:19:18 -07:00
2025-11-04 17:38:45 +00:00
2025-11-06 14:19:25 +01:00
2025-06-16 18:09:14 +00:00
2025-05-10 03:31:30 +00:00
2025-10-30 17:51:53 +01:00
2025-08-14 10:17:32 +10:00
2025-11-14 01:17:38 +02:00
2025-11-14 01:17:38 +02:00
2025-08-22 14:25:39 +00:00
2025-08-22 14:25:39 +00:00
2025-05-08 20:13:46 +00:00
2025-05-13 12:09:40 +02:00
2025-05-13 12:09:40 +02:00
2025-11-10 09:15:24 -08:00
2025-08-28 10:09:32 -07:00
2025-11-25 07:36:50 -05:00
2025-11-25 07:36:50 -05:00
2025-11-21 22:02:07 -05:00
2025-11-21 22:02:07 -05:00
2025-07-23 15:01:18 +01:00
2025-07-23 15:01:18 +01:00
2025-11-25 10:35:11 +00:00
2025-10-31 11:47:28 +01:00
2025-08-01 15:12:37 +02:00
2025-08-01 15:12:37 +02:00
2025-04-30 14:51:21 +02:00
2025-04-30 14:51:21 +02:00