doc: correct weight numbers for fundpsbt

This commit is contained in:
niftynei
2020-09-14 14:56:17 -05:00
committed by Rusty Russell
parent 9f006fdf03
commit 53ba34fe3a
3 changed files with 12 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ def on_openchannel(openchannel2, plugin, **kwargs):
psbt_obj = psbt_from_base64(funding['psbt'])
excess = Millisatoshi(funding['excess_msat'])
change_cost = Millisatoshi(164 * feerate // 1000 * 1000)
change_cost = Millisatoshi(124 * feerate // 1000 * 1000)
dust_limit = Millisatoshi(253 * 1000)
if excess > (dust_limit + change_cost):
addr = plugin.rpc.newaddr()['bech32']