closingd, lightningd: use bitcoin_tx_2of2_input_witness_weight

This fixes lightningd's chronic weight underestimate.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: closingd: more accurate weight estimation helps mutual closing near min/max feerates.
This commit is contained in:
Rusty Russell
2022-01-26 12:42:34 +10:30
committed by Christian Decker
parent 8a8d7c4243
commit de28bbd792
3 changed files with 5 additions and 17 deletions

View File

@@ -3655,7 +3655,6 @@ def test_close_twice(node_factory, executor):
assert fut2.result(TIMEOUT)['type'] == 'mutual'
@pytest.mark.xfail(strict=True)
def test_close_weight_estimate(node_factory, bitcoind):
"""closingd uses the expected closing tx weight to constrain fees; make sure that lightningd agrees
once it has the actual agreed tx"""