File tree Expand file tree Collapse file tree
tests/consensus/devnet/networking Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515"""Hex-encoded topic bytes for the devnet0 block topic string."""
1616
1717
18+ # --- Valid snappy domain ---
19+
20+
1821def test_message_id_valid_snappy (networking_codec : NetworkingCodecTestFiller ) -> None :
1922 """Message ID with valid-snappy domain and typical block data."""
2023 networking_codec (
@@ -39,6 +42,9 @@ def test_message_id_valid_snappy_large_payload(networking_codec: NetworkingCodec
3942 )
4043
4144
45+ # --- Invalid snappy domain ---
46+
47+
4248def test_message_id_invalid_snappy (networking_codec : NetworkingCodecTestFiller ) -> None :
4349 """Message ID with invalid-snappy domain and same data as the valid test."""
4450 networking_codec (
@@ -51,6 +57,9 @@ def test_message_id_invalid_snappy(networking_codec: NetworkingCodecTestFiller)
5157 )
5258
5359
60+ # --- Empty inputs ---
61+
62+
5463def test_message_id_empty_data (networking_codec : NetworkingCodecTestFiller ) -> None :
5564 """Message ID with empty payload."""
5665 networking_codec (
@@ -87,6 +96,9 @@ def test_message_id_both_empty(networking_codec: NetworkingCodecTestFiller) -> N
8796 )
8897
8998
99+ # --- Domain differentiation ---
100+
101+
90102def test_message_id_domain_changes_id (networking_codec : NetworkingCodecTestFiller ) -> None :
91103 """Same topic and data with invalid-snappy domain produces a different ID."""
92104 networking_codec (
You can’t perform that action at this time.
0 commit comments