def peer_closed(self, peer):
    for chan in self.channels_for_peer(peer.pubkey).values():
        chan.peer_state = PeerState.DISCONNECTED
        util.trigger_callback('channel', self.wallet, chan)
    super().peer_closed(peer)
def peer_closed(self, peer):
    for chan in self.channels_for_peer(peer.pubkey).values():
        chan.peer_state = PeerState.DISCONNECTED
        util.trigger_callback('channel', self.wallet, chan)
    super().peer_closed(peer)