mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
fundpsbt: let caller specify locktime.
Required for dual funding where the opener sets it. Changelog-Added: JSON-RPC: `fundpsbt` takes a new `locktime` parameter Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
bf5e99403e
commit
14baaaa8ba
@@ -1126,7 +1126,7 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("unreserveinputs", payload)
|
||||
|
||||
def fundpsbt(self, satoshi, feerate, startweight, minconf=None, reserve=True):
|
||||
def fundpsbt(self, satoshi, feerate, startweight, minconf=None, reserve=True, locktime=None):
|
||||
"""
|
||||
Create a PSBT with inputs sufficient to give an output of satoshi.
|
||||
"""
|
||||
@@ -1136,6 +1136,7 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
"startweight": startweight,
|
||||
"minconf": minconf,
|
||||
"reserve": reserve,
|
||||
"locktime": locktime,
|
||||
}
|
||||
return self.call("fundpsbt", payload)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user