diff options
author | MacroFake <falke.marco@gmail.com> | 2022-10-25 13:31:48 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-10-25 13:26:29 +0200 |
commit | fae0439486e9af428829b4604b3be5bb97b67b24 (patch) | |
tree | cb3ec33bc3ebff12e515886dfa8085302afa6a87 /test | |
parent | fa590cfaae887c927ffb4af92a15516332428d69 (diff) | |
download | bitcoin-fae0439486e9af428829b4604b3be5bb97b67b24.tar.xz |
test: Check correct disconnect reason in p2p_sendtxrcncl.py
Previously it disconnected due to "sendtxrcncl received after verack",
now it disconnects for the correct reason.
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/p2p_sendtxrcncl.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/p2p_sendtxrcncl.py b/test/functional/p2p_sendtxrcncl.py index 4c7256bd6b..d384996994 100755 --- a/test/functional/p2p_sendtxrcncl.py +++ b/test/functional/p2p_sendtxrcncl.py @@ -168,9 +168,10 @@ class SendTxRcnclTest(BitcoinTestFramework): self.log.info('SENDTXRCNCL with initiator=1 and responder=0 from outbound triggers a disconnect') sendtxrcncl_wrong_role = create_sendtxrcncl_msg(initiator=True) peer = self.nodes[0].add_outbound_p2p_connection( - P2PInterface(), wait_for_verack=False, p2p_idx=4, connection_type="outbound-full-relay") - peer.send_message(sendtxrcncl_wrong_role) - peer.wait_for_disconnect() + PeerNoVerack(), wait_for_verack=False, p2p_idx=4, connection_type="outbound-full-relay") + with self.nodes[0].assert_debug_log(["txreconciliation protocol violation"]): + peer.send_message(sendtxrcncl_wrong_role) + peer.wait_for_disconnect() self.log.info('SENDTXRCNCL not sent if -txreconciliation flag is not set') self.restart_node(0, []) |