URI: 
       tlnpeer: - print parent classname in diagnostic name, - fix error message when requested feature is not supported - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit a96aa68a4c8f6b26d75b31404df25a3b34f65c8a
   DIR parent 570167a2c469c6da5928cf2dc8badae421a0c695
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Fri, 21 Feb 2020 09:48:36 +0100
       
       lnpeer:
        - print parent classname in diagnostic name,
        - fix error message when requested feature is not supported
       
       Diffstat:
         M electrum/lnpeer.py                  |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py
       t@@ -127,7 +127,7 @@ class Peer(Logger):
                return self.lnworker.channels_for_peer(self.pubkey)
        
            def diagnostic_name(self):
       -        return self.transport.name()
       +        return self.lnworker.__class__.__name__ + ', ' + self.transport.name()
        
            def ping_if_required(self):
                if time.time() - self.ping_time > 120:
       t@@ -193,7 +193,7 @@ class Peer(Logger):
                    if flag not in their_flags and get_ln_flag_pair_of_bit(flag) not in their_flags:
                        # they don't have this feature we wanted :(
                        if flag % 2 == 0:  # even flags are compulsory
       -                    raise GracefulDisconnect("remote does not have even flag {}"
       +                    raise GracefulDisconnect("remote does not support {}"
                                                     .format(str(LnLocalFeatures(1 << flag))))
                        self.localfeatures ^= 1 << flag  # disable flag
                    else: