mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
invoice: add deschashonly parameter.
LNURL wants this so they can include images etc in descriptions. Replaces: #4892 Changelog-Added: JSON-RPC: `invoice` has a new parameter `deschashonly` to put hash of description in bolt11. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -828,7 +828,7 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
return self.call("help", payload)
|
||||
|
||||
def invoice(self, msatoshi, label, description, expiry=None, fallbacks=None,
|
||||
preimage=None, exposeprivatechannels=None, cltv=None):
|
||||
preimage=None, exposeprivatechannels=None, cltv=None, deschashonly=None):
|
||||
"""
|
||||
Create an invoice for {msatoshi} with {label} and {description} with
|
||||
optional {expiry} seconds (default 1 week).
|
||||
@@ -842,6 +842,7 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
"preimage": preimage,
|
||||
"exposeprivatechannels": exposeprivatechannels,
|
||||
"cltv": cltv,
|
||||
"deschashonly": deschashonly,
|
||||
}
|
||||
return self.call("invoice", payload)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user