lnd/lntest
Olaoluwa Osuntokun 2482de9cab
lnwallet/chancloser: properly compute initial fee of cop close txn
In this commit, we modify the way we compute the starting ideal fee for
the co-op close transaction. Before thsi commit, channel.CalcFee was
used, which'll compute the fee based on the commitment transaction
itself, rathern than the co-op close transaction. As the co-op close
transaction is potentailly bigger (two P2TR outputs) than the commitment
transaction, this can cause us to under estimate the fee, which can
result in the fee rate being too low to propagate.

To remedy this, we now compute a fee estimate from scratch, based on the
delivery fees of the two parties.

We also add a bug fix in the chancloser unit tests that wasn't caught
due to loop variable shadowing.

The wallet import itest has been updated as well, since we'll now pay
600 extra saothis to close the channel, since we're accounting for the
added weight of the P2TR outputs.

Fixes #6953
2022-10-10 14:50:45 -07:00
..
channels lntest/channels: introduce subpackage to deduplicate static structs 2021-01-25 14:04:39 -05:00
itest lnwallet/chancloser: properly compute initial fee of cop close txn 2022-10-10 14:50:45 -07:00
mock lntest+lnwallet: add ImportTaprootScript to wallet interface 2022-08-25 09:20:23 +02:00
wait itest: remove extra graph topology subscription 2021-09-17 07:50:42 +08:00
bitcoind_common.go multi: new bitcoind rpcpolling backend for itests 2022-05-11 09:02:13 +02:00
bitcoind_notxindex.go multi: new bitcoind rpcpolling backend for itests 2022-05-11 09:02:13 +02:00
bitcoind_rpcpolling.go multi: new bitcoind rpcpolling backend for itests 2022-05-11 09:02:13 +02:00
bitcoind.go multi: new bitcoind rpcpolling backend for itests 2022-05-11 09:02:13 +02:00
btcd.go lntest: surface bitcoin backend rpc credentials 2022-01-10 14:49:10 -05:00
doc.go lntest: Add doc.go with package documentation. 2017-12-14 20:06:23 -08:00
fee_service_test.go multi: fix newly detected linter issues 2022-02-10 11:02:02 +01:00
fee_service.go multi: fix newly detected linter issues 2022-02-10 11:02:02 +01:00
harness_miner.go itest: start using harness miner in harness net 2022-01-05 13:10:06 +08:00
harness_net.go itest: openchannel fee scenarios 2022-09-29 08:31:47 -04:00
harness_node.go itest: openchannel fee scenarios 2022-09-29 08:31:47 -04:00
neutrino.go lntest: surface bitcoin backend rpc credentials 2022-01-10 14:49:10 -05:00
test_common.go lntest: export ListenerFormat constant 2022-01-06 12:57:27 +01:00
timeouts_darwin.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
timeouts_remote_db.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
timeouts.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00