Skip to content

Commit fae0439

Browse files
author
MacroFake
committed
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.
1 parent fa590cf commit fae0439

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/functional/p2p_sendtxrcncl.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,10 @@ def run_test(self):
168168
self.log.info('SENDTXRCNCL with initiator=1 and responder=0 from outbound triggers a disconnect')
169169
sendtxrcncl_wrong_role = create_sendtxrcncl_msg(initiator=True)
170170
peer = self.nodes[0].add_outbound_p2p_connection(
171-
P2PInterface(), wait_for_verack=False, p2p_idx=4, connection_type="outbound-full-relay")
172-
peer.send_message(sendtxrcncl_wrong_role)
173-
peer.wait_for_disconnect()
171+
PeerNoVerack(), wait_for_verack=False, p2p_idx=4, connection_type="outbound-full-relay")
172+
with self.nodes[0].assert_debug_log(["txreconciliation protocol violation"]):
173+
peer.send_message(sendtxrcncl_wrong_role)
174+
peer.wait_for_disconnect()
174175

175176
self.log.info('SENDTXRCNCL not sent if -txreconciliation flag is not set')
176177
self.restart_node(0, [])

0 commit comments

Comments
 (0)