1
0

ln feature bits: validate transitive feature deps everywhere

This commit is contained in:
SomberNight
2020-03-25 13:44:39 +01:00
parent 94e3c078f8
commit 71635216df
4 changed files with 30 additions and 17 deletions

View File

@@ -170,7 +170,7 @@ def pull_tagged(stream):
length = stream.read(5).uint * 32 + stream.read(5).uint
return (CHARSET[tag], stream.read(length * 5), stream)
def lnencode(addr: 'LnAddr', privkey):
def lnencode(addr: 'LnAddr', privkey) -> str:
if addr.amount:
amount = Decimal(str(addr.amount))
# We can only send down to millisatoshi.