def channel_by_txo(self, txo: str) -> Optional[AbstractChannel]:
    for chan in self.channels.values():
        if (chan.funding_outpoint.to_str() == txo):
            return chan
    for chan in self.channel_backups.values():
        if (chan.funding_outpoint.to_str() == txo):
            return chan
def channel_by_txo(self, txo: str) -> Optional[AbstractChannel]:
    for chan in self.channels.values():
        if (chan.funding_outpoint.to_str() == txo):
            return chan
    for chan in self.channel_backups.values():
        if (chan.funding_outpoint.to_str() == txo):
            return chan