diff options
author | stratospher <44024636+stratospher@users.noreply.github.com> | 2024-01-31 14:34:34 +0530 |
---|---|---|
committer | stratospher <44024636+stratospher@users.noreply.github.com> | 2024-01-31 22:37:54 +0530 |
commit | e7fd70f4b6b163f4ad5b25b4da7fa79899245235 (patch) | |
tree | 5dc48ca128f7d9eeee69bbf9b878c5105cd546bc /test/functional/test_framework/v2_p2p.py | |
parent | 411ba32af21a56efa0a570b6aa8bf8f035410230 (diff) |
[test] make v2transport arg in addconnection mandatory and few cleanups
`TestNode::add_outbound_p2p_connection()` is the only place where
addconnection test-only RPC is used. here, we always pass the
appropriate v2transport option to addconnection RPC.
currently the v2transport option for addconnection RPC is optional.
so simply make the v2transport option mandatory instead.
Diffstat (limited to 'test/functional/test_framework/v2_p2p.py')
-rw-r--r-- | test/functional/test_framework/v2_p2p.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/test_framework/v2_p2p.py b/test/functional/test_framework/v2_p2p.py index 0b3979fba2..8f79623bd8 100644 --- a/test/functional/test_framework/v2_p2p.py +++ b/test/functional/test_framework/v2_p2p.py @@ -220,6 +220,7 @@ class EncryptedP2PState: # decoy packets have contents = None. v2 handshake is complete only when version packet # (can be empty with contents = b"") with contents != None is received. if contents is not None: + assert contents == b"" # currently TestNode sends an empty version packet self.tried_v2_handshake = True return processed_length, True response = response[length:] |