55 | + # Setup the p2p connections, making sure the connections are established before the mocktime is bumped
56 | + with self.nodes[0].assert_debug_log(['Added connection peer=0']):
57 | + no_verack_node = self.nodes[0].add_p2p_connection(TestP2PConn(), wait_for_verack=False)
58 | + with self.nodes[0].assert_debug_log(['Added connection peer=1']):
59 | + no_version_node = self.nodes[0].add_p2p_connection(TestP2PConn(), send_version=False, wait_for_verack=False)
60 | + with self.nodes[0].assert_debug_log(['Added connection peer=2']):
would an alternative be to connect no_verack_node last?
Yes, I actually thought about that alternative, but relying on the order seemed a bit ugly to me too (and it would require changing later assert_debug_log because the peer ids would change). But I don't have a strong preference, would you prefer that solution?
Or yet another alternative would be to append a full dummy connection for the sole purpose of syncing (wouldn't change the ids).
Personally I think any solution is fine.
ok, then I'll keep it as is for now.