mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-20 10:39:01 +01:00
2482de9cab
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 |
||
---|---|---|
.. | ||
channels | ||
itest | ||
mock | ||
wait | ||
bitcoind_common.go | ||
bitcoind_notxindex.go | ||
bitcoind_rpcpolling.go | ||
bitcoind.go | ||
btcd.go | ||
doc.go | ||
fee_service_test.go | ||
fee_service.go | ||
harness_miner.go | ||
harness_net.go | ||
harness_node.go | ||
neutrino.go | ||
test_common.go | ||
timeouts_darwin.go | ||
timeouts_remote_db.go | ||
timeouts.go |