File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 38
38
class msg_unrecognized :
39
39
"""Nonsensical message. Modeled after similar types in test_framework.messages."""
40
40
41
- msgtype = b'badmsg\x01 '
41
+ msgtype = b'badmsg'
42
42
43
43
def __init__ (self , * , str_data ):
44
44
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):
105
105
conn .send_and_ping (msg_version ())
106
106
self .nodes [0 ].disconnect_p2ps ()
107
107
108
- def test_magic_bytes (self ):
108
+ def test_magic_bytes (self ):
109
109
self .log .info ("Test message with invalid magic bytes disconnects peer" )
110
110
conn = self .nodes [0 ].add_p2p_connection (P2PDataStore ())
111
111
with self .nodes [0 ].assert_debug_log (['HEADER ERROR - MESSAGESTART (badmsg, 2 bytes), received ffffffff' ]):
You can’t perform that action at this time.
0 commit comments