mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-09 05:12:40 +02:00
tests: stabilize sendtxrcncl test
This commit is contained in:
@@ -110,8 +110,8 @@ class SendTxRcnclTest(BitcoinTestFramework):
|
||||
|
||||
self.log.info('valid SENDTXRCNCL received')
|
||||
peer = self.nodes[0].add_p2p_connection(PeerNoVerack(), send_version=True, wait_for_verack=False)
|
||||
with self.nodes[0].assert_debug_log(["received: sendtxrcncl"]):
|
||||
peer.send_message(create_sendtxrcncl_msg())
|
||||
self.wait_until(lambda : "sendtxrcncl" in self.nodes[0].getpeerinfo()[-1]["bytesrecv_per_msg"])
|
||||
self.log.info('second SENDTXRCNCL triggers a disconnect')
|
||||
with self.nodes[0].assert_debug_log(["(sendtxrcncl received from already registered peer); disconnecting"]):
|
||||
peer.send_message(create_sendtxrcncl_msg())
|
||||
|
Reference in New Issue
Block a user