def create_channel_backup(self, channel_id):
    chan = self._channels[channel_id]
    assert chan.is_static_remotekey_enabled()
    peer_addresses = list(chan.get_peer_addresses())
    peer_addr = peer_addresses[0]
    return ImportedChannelBackupStorage(node_id=chan.node_id, privkey=self.node_keypair.privkey, funding_txid=chan.funding_outpoint.txid, funding_index=chan.funding_outpoint.output_index, funding_address=chan.get_funding_address(), host=peer_addr.host, port=peer_addr.port, is_initiator=chan.constraints.is_initiator, channel_seed=chan.config[LOCAL].channel_seed, local_delay=chan.config[LOCAL].to_self_delay, remote_delay=chan.config[REMOTE].to_self_delay, remote_revocation_pubkey=chan.config[REMOTE].revocation_basepoint.pubkey, remote_payment_pubkey=chan.config[REMOTE].payment_basepoint.pubkey)
def create_channel_backup(self, channel_id):
    chan = self._channels[channel_id]
    assert chan.is_static_remotekey_enabled()
    peer_addresses = list(chan.get_peer_addresses())
    peer_addr = peer_addresses[0]
    return ImportedChannelBackupStorage(node_id=chan.node_id, privkey=self.node_keypair.privkey, funding_txid=chan.funding_outpoint.txid, funding_index=chan.funding_outpoint.output_index, funding_address=chan.get_funding_address(), host=peer_addr.host, port=peer_addr.port, is_initiator=chan.constraints.is_initiator, channel_seed=chan.config[LOCAL].channel_seed, local_delay=chan.config[LOCAL].to_self_delay, remote_delay=chan.config[REMOTE].to_self_delay, remote_revocation_pubkey=chan.config[REMOTE].revocation_basepoint.pubkey, remote_payment_pubkey=chan.config[REMOTE].payment_basepoint.pubkey)