Skip to content

Commit ac14939

Browse files
committed
more fixes
1 parent eb8153c commit ac14939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/p2p_invalid_messages.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
class msg_unrecognized:
3939
"""Nonsensical message. Modeled after similar types in test_framework.messages."""
4040

41-
msgtype = b'badmsg\x01'
41+
msgtype = b'badmsg'
4242

4343
def __init__(self, *, str_data):
4444
self.str_data = str_data.encode() if not isinstance(str_data, bytes) else str_data
@@ -105,7 +105,7 @@ def test_duplicate_version_msg(self):
105105
conn.send_and_ping(msg_version())
106106
self.nodes[0].disconnect_p2ps()
107107

108-
def test_magic_bytes(self):
108+
def test_magic_bytes(self):
109109
self.log.info("Test message with invalid magic bytes disconnects peer")
110110
conn = self.nodes[0].add_p2p_connection(P2PDataStore())
111111
with self.nodes[0].assert_debug_log(['HEADER ERROR - MESSAGESTART (badmsg, 2 bytes), received ffffffff']):

0 commit comments

Comments
 (0)