diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-04-25 13:44:44 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-05-07 14:34:55 +0200 |
commit | eeaaa58d2ccc243a7506d34bca47c678867d6dd5 (patch) | |
tree | 674f8d72a49729f20138ef0acf81403277f37389 /test/functional/p2p_invalid_messages.py | |
parent | c1cd2b5a97f435b75f860a1a4d95e15a2c3b270b (diff) |
test: replace inv type magic numbers by constants
Diffstat (limited to 'test/functional/p2p_invalid_messages.py')
-rwxr-xr-x | test/functional/p2p_invalid_messages.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/p2p_invalid_messages.py b/test/functional/p2p_invalid_messages.py index 4bd832e8f7..e4e269e871 100755 --- a/test/functional/p2p_invalid_messages.py +++ b/test/functional/p2p_invalid_messages.py @@ -206,10 +206,10 @@ class InvalidMessagesTest(BitcoinTestFramework): def test_large_inv(self): conn = self.nodes[0].add_p2p_connection(P2PInterface()) with self.nodes[0].assert_debug_log(['Misbehaving', 'peer=4 (0 -> 20): message inv size() = 50001']): - msg = messages.msg_inv([messages.CInv(1, 1)] * 50001) + msg = messages.msg_inv([messages.CInv(messages.MSG_TX, 1)] * 50001) conn.send_and_ping(msg) with self.nodes[0].assert_debug_log(['Misbehaving', 'peer=4 (20 -> 40): message getdata size() = 50001']): - msg = messages.msg_getdata([messages.CInv(1, 1)] * 50001) + msg = messages.msg_getdata([messages.CInv(messages.MSG_TX, 1)] * 50001) conn.send_and_ping(msg) with self.nodes[0].assert_debug_log(['Misbehaving', 'peer=4 (40 -> 60): headers message size = 2001']): msg = messages.msg_headers([messages.CBlockHeader()] * 2001) |