You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# check description_hash support (could be provided by a plugin)self.supports_description_hash=Falsetry:
answer=self.ln.help("invoicewithdescriptionhash")
ifanswer["help"][0]["command"].startswith(
"invoicewithdescriptionhash msatoshi label description_hash"
):
self.supports_description_hash=Trueexcept:
pass
Maybe this is also a good opportunity to rename the wallet to cln.py (see if old versions can still import it though).
Todo:
Update pylightning to pyln-client
Update wallet documentation where pylightning is referenced
Get rid of supports_description_hash block
Rename clightning.py to cln.py?
Write tests with description hash that should fail with old version
The text was updated successfully, but these errors were encountered:
Right now creating a CLN invoice with description hash uses a plugin
invoicewithdescriptionhash
.New CLN supports description hash out of the box (see here):
From here:
Let's use it.
Need to remove this block from
clightning.py
Maybe this is also a good opportunity to rename the wallet to
cln.py
(see if old versions can still import it though).Todo:
pylightning
topyln-client
pylightning
is referencedsupports_description_hash
blockclightning.py
tocln.py
?The text was updated successfully, but these errors were encountered: