Bruno Garcia
cc577de954
net: align v2 message type validation with v1 range
...
BIP324 specifies the 13-byte long-form message type encoding as
"an ASCII message type (as in the v1 P2P protocol)", but
V2Transport::GetMessageType() accepted bytes up to 0x7F, while
for V1 it only accepts printable ASCII (0x20-0x7E).
This changes V2 to match V1 on it and add test coverage.
2026-08-12 10:02:08 -03:00
..
2026-08-07 09:37:24 +01:00
2026-08-06 19:20:51 -04:00
2026-08-04 15:02:39 +01:00
2026-07-24 14:01:06 +01:00
2026-07-12 12:39:54 +02:00
2026-06-26 09:56:01 -07:00
2026-08-03 15:53:09 +01:00
2026-07-29 09:36:13 +02:00
2026-08-11 13:18:13 -07:00
2026-08-11 16:00:27 +01:00
2026-06-23 22:10:34 -04:00
2026-08-03 12:03:56 -07:00
2026-08-05 22:16:46 +08:00
2026-08-05 21:41:49 +02:00
2026-08-10 16:16:08 +02:00
2026-08-07 16:18:04 +01:00
2026-08-11 12:27:37 +02:00
2026-07-23 09:52:01 +01:00
2026-07-24 14:01:06 +01:00
2026-08-12 10:02:08 -03:00
2026-08-07 15:54:18 +01:00
2026-08-11 11:06:33 -07:00
2026-07-24 14:01:06 +01:00
2026-07-14 13:31:49 +02:00
2026-08-05 11:51:29 +02:00
2026-07-10 13:33:51 -03:00
2026-07-22 13:54:39 +01:00
2026-06-10 10:32:40 +01:00
2026-06-10 10:32:40 +01:00
2026-06-04 21:58:56 +10:00
2026-06-27 11:26:41 +01:00
2026-06-04 09:23:13 +02:00
2026-07-17 14:01:58 +02:00
2026-05-27 15:48:32 +01:00
2026-07-17 10:57:18 -04:00
2026-06-03 13:53:24 -07:00
2026-05-25 18:55:15 -04:00
2026-06-16 10:38:20 +02:00
2026-07-14 13:20:41 -04:00
2026-08-10 16:16:08 +02:00
2026-07-17 22:55:23 -07:00
2026-07-22 12:38:13 -07:00
2026-07-24 14:01:06 +01:00
2026-05-29 11:36:08 +03:00
2026-07-04 11:19:19 -04:00
2026-07-12 12:39:54 +02:00
2026-07-02 09:23:48 -04:00
2026-06-11 10:33:03 -07:00
2026-07-24 14:01:06 +01:00
2026-06-22 05:47:00 -04:00
2026-08-05 16:38:06 -07:00
2026-08-01 16:43:57 +01:00
2026-07-23 12:06:32 +02:00
2026-07-23 12:06:32 +02:00
2026-08-03 12:03:56 -07:00
2026-07-29 09:55:39 +02:00
2026-07-29 09:55:39 +02:00
2026-06-23 22:10:34 -04:00
2026-05-27 15:48:32 +01:00
2026-06-25 17:34:01 -07:00
2026-06-12 16:06:23 -04:00
2026-08-05 21:20:22 -04:00
2026-07-12 09:12:27 +10:00
2026-08-12 10:02:08 -03:00
2026-07-24 14:30:00 -07:00
2026-06-27 11:26:41 +01:00
2026-05-20 13:39:20 +02:00
2026-06-11 21:33:33 +02:00
2026-06-11 21:31:18 +02:00
2026-06-10 10:32:40 +01:00
2026-07-07 16:24:48 +01:00
2026-06-30 14:53:59 -04:00
2026-07-21 18:59:09 +02:00
2026-05-29 11:36:08 +03:00
2026-06-25 17:34:01 -07:00
2026-06-25 17:34:01 -07:00
2026-08-04 15:37:40 -07:00
2026-06-04 21:54:08 +10:00
2026-05-29 11:36:08 +03:00
2026-06-08 19:06:33 +01:00
2026-07-24 14:01:06 +01:00
2026-07-28 13:02:21 +02:00
2026-07-28 13:02:21 +02:00
2026-06-23 16:13:03 -07:00
2026-07-14 13:27:20 -07:00
2026-07-17 11:36:46 +01:00
2026-07-12 09:12:27 +10:00
2026-07-25 12:15:44 +02:00
2026-08-10 16:02:20 +03:00
2026-08-05 21:41:49 +02:00
2026-08-06 11:19:41 +02:00
2026-07-09 16:21:28 +02:00
2026-06-01 09:53:29 -04:00