mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge 1c41fb9181 into merged_master (Bitcoin PR bitcoin/bitcoin#23812)
This commit is contained in:
commit
12dda5542d
1 changed files with 7 additions and 4 deletions
|
|
@ -48,10 +48,13 @@ class TimeoutsTest(BitcoinTestFramework):
|
|||
self.mock_time = int(time.time())
|
||||
self.mock_forward(0)
|
||||
|
||||
# Setup the p2p connections
|
||||
no_verack_node = self.nodes[0].add_p2p_connection(TestP2PConn(), wait_for_verack=False)
|
||||
no_version_node = self.nodes[0].add_p2p_connection(TestP2PConn(), send_version=False, wait_for_verack=False)
|
||||
no_send_node = self.nodes[0].add_p2p_connection(TestP2PConn(), send_version=False, wait_for_verack=False)
|
||||
# Setup the p2p connections, making sure the connections are established before the mocktime is bumped
|
||||
with self.nodes[0].assert_debug_log(['Added connection peer=0']):
|
||||
no_verack_node = self.nodes[0].add_p2p_connection(TestP2PConn(), wait_for_verack=False)
|
||||
with self.nodes[0].assert_debug_log(['Added connection peer=1']):
|
||||
no_version_node = self.nodes[0].add_p2p_connection(TestP2PConn(), send_version=False, wait_for_verack=False)
|
||||
with self.nodes[0].assert_debug_log(['Added connection peer=2']):
|
||||
no_send_node = self.nodes[0].add_p2p_connection(TestP2PConn(), send_version=False, wait_for_verack=False)
|
||||
|
||||
# Wait until we got the verack in response to the version. Though, don't wait for the other node to receive the
|
||||
# verack, since we never sent one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue