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:
Rusty Russell
2020-08-18 13:54:39 +09:30
committed by neil saitug
parent bf5e99403e
commit 14baaaa8ba
5 changed files with 32 additions and 15 deletions

View File

@@ -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)