diff options
author | Martin Zumsande <mzumsande@gmail.com> | 2023-11-17 17:00:20 -0500 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2024-02-06 15:59:17 -0500 |
commit | 5fc9db504b9ac784019e7e8c215c31abfccb62b6 (patch) | |
tree | 643216b103c3a7c13dc84a720bf531254c1919a3 /test/functional/p2p_v2_earlykeyresponse.py | |
parent | 592e01398e765bf3c3f4fc106f40c8be373b4bb0 (diff) | |
download | bitcoin-5fc9db504b9ac784019e7e8c215c31abfccb62b6.tar.xz |
test: enable p2p_sendtxrcncl.py with v2transport
By adding to the test framework a wait until the v2 handshake
is completed, so that p2p_sendtxrcncl.py (which doesn't need
to be changed itself) doesnt't send out any other messages before that.
Diffstat (limited to 'test/functional/p2p_v2_earlykeyresponse.py')
-rwxr-xr-x | test/functional/p2p_v2_earlykeyresponse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/p2p_v2_earlykeyresponse.py b/test/functional/p2p_v2_earlykeyresponse.py index 1f570e6010..32d2e1148a 100755 --- a/test/functional/p2p_v2_earlykeyresponse.py +++ b/test/functional/p2p_v2_earlykeyresponse.py @@ -75,7 +75,7 @@ class P2PEarlyKey(BitcoinTestFramework): self.log.info('Sending first 4 bytes of ellswift which match network magic') self.log.info('If a response is received, assertion failure would happen in our custom data_received() function') # send happens in `initiate_v2_handshake()` in `connection_made()` - peer1 = node0.add_p2p_connection(PeerEarlyKey(), wait_for_verack=False, send_version=False, supports_v2_p2p=True) + peer1 = node0.add_p2p_connection(PeerEarlyKey(), wait_for_verack=False, send_version=False, supports_v2_p2p=True, wait_for_v2_handshake=False) self.wait_until(lambda: peer1.connection_opened) self.log.info('Sending remaining ellswift and garbage which are different from V1_PREFIX. Since a response is') self.log.info('expected now, our custom data_received() function wouldn\'t result in assertion failure') |