Browse Source

lnchan: set diagnostic_name

previously was only set for tests
dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight 6 years ago
committed by ThomasV
parent
commit
f3d1f71e94
  1. 7
      electrum/lnchan.py

7
electrum/lnchan.py

@ -93,7 +93,12 @@ def str_bytes_dict_to_save(x):
class Channel(PrintError):
def diagnostic_name(self):
return str(self.name)
if self.name:
return str(self.name)
try:
return f"lnchan_{bh2u(self.channel_id[-4:])}"
except:
return super().diagnostic_name()
def __init__(self, state, name = None):
assert 'local_state' not in state

Loading…
Cancel
Save