1
0

add labels to lightning history

This commit is contained in:
ThomasV
2019-05-06 16:52:25 +02:00
parent c4081284bd
commit e53ecb9b77
4 changed files with 20 additions and 12 deletions

View File

@@ -258,6 +258,14 @@ class LnAddr(object):
def get_min_final_cltv_expiry(self) -> int:
return self._min_final_cltv_expiry
def get_description(self):
description = ''
for k,v in self.tags:
if k == 'd':
description = v
break
return description
def lndecode(a, verbose=False, expected_hrp=None):
if expected_hrp is None: