1
0

support new protocol (minerFeeInvoice)

This commit is contained in:
ThomasV
2020-06-06 19:37:53 +02:00
parent bcf2246633
commit ee59ad13c4
2 changed files with 18 additions and 2 deletions

View File

@@ -274,6 +274,9 @@ class LnAddr(object):
self.amount = amount # in bitcoins
self._min_final_cltv_expiry = 9
def get_amount_sat(self):
return self.amount * COIN
def __str__(self):
return "LnAddr[{}, amount={}{} tags=[{}]]".format(
hexlify(self.pubkey.serialize()).decode('utf-8') if self.pubkey else None,