def peer_connect(self, *args, services=(NODE_NETWORK | NODE_WITNESS), send_version=True, **kwargs):
    create_conn = super().peer_connect(*args, **kwargs)
    if send_version:
        vt = msg_version()
        vt.nServices = services
        vt.addrTo.ip = self.dstaddr
        vt.addrTo.port = self.dstport
        vt.addrFrom.ip = '0.0.0.0'
        vt.addrFrom.port = 0
        self.on_connection_send_msg = vt
    return create_conn
def peer_connect(self, *args, services=(NODE_NETWORK | NODE_WITNESS), send_version=True, **kwargs):
    create_conn = super().peer_connect(*args, **kwargs)
    if send_version:
        vt = msg_version()
        vt.nServices = services
        vt.addrTo.ip = self.dstaddr
        vt.addrTo.port = self.dstport
        vt.addrFrom.ip = '0.0.0.0'
        vt.addrFrom.port = 0
        self.on_connection_send_msg = vt
    return create_conn