pyln-client: add missing min_witness_weight to fundpsbt/utxopsbt

We need to use it for the 'df_accepter' plugin, so we get the feerate
correct.

Changelog-Added: pyln-client: `fundpsbt`/`utxopsbt` now support `min_witness_weight` param
This commit is contained in:
niftynei
2020-12-15 14:09:22 -06:00
committed by Christian Decker
parent 19afe15968
commit cce0020568
2 changed files with 6 additions and 3 deletions

View File

@@ -79,7 +79,8 @@ def on_openchannel(openchannel2, plugin, **kwargs):
funding = plugin.rpc.fundpsbt(amount,
'{}perkw'.format(feerate),
0, reserve=True,
locktime=locktime)
locktime=locktime,
min_witness_weight=110)
psbt_obj = psbt_from_base64(funding['psbt'])
excess = Millisatoshi(funding['excess_msat'])