lnd/docs
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
..
grpc docs: fix spelling in JavaScript example. 2022-01-11 14:08:20 +01:00
release-notes lnwallet/chancloser: properly compute initial fee of cop close txn 2022-10-10 14:50:45 -07:00
rest multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
code_contribution_guidelines.md docs: extract formatting rules 2022-07-06 13:33:02 +02:00
code_formatting_rules.md doc: vim visual ruler at column 80 2022-09-27 09:45:55 -04:00
configuring_tor.md docs: Add a section in configuring_tor about the --tor.encryptkey flag 2022-09-30 01:53:46 -05:00
debugging_lnd.md docs: unify code and shell cmd blocks 2021-01-22 09:14:09 +01:00
DOCKER.md github: re-add rolling 'daily-testing-only' tag [skip ci] 2022-03-22 14:12:56 -04:00
etcd.md docs: update etcd docs 2022-02-28 12:03:05 +01:00
fuzz.md docs: update fuzz.md to explain new build/run process 2021-06-16 12:49:26 -04:00
INSTALL.md fix: go version in ARMv6 section of INSTALL.md 2022-07-23 17:55:06 +02:00
key_import.md Docs: fix language ambiguity in key import [skip ci] 2021-11-09 11:49:50 -05:00
leader_election.md multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
macaroons.md docs: unify code and shell cmd blocks 2021-01-22 09:14:09 +01:00
MAKEFILE.md multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
musig2.md docs: add MuSig2 doc and release notes 2022-04-29 11:42:47 +02:00
nat_traversal.md docs: unify code and shell cmd blocks 2021-01-22 09:14:09 +01:00
postgres.md Merge pull request #6402 from asvdf/master 2022-04-19 11:20:10 -07:00
psbt.md doc: fix typos in psbt.md 2022-09-27 10:54:17 -04:00
recovery.md multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
release.md docs: update release verification scripts for v0.12.1-beta 2021-09-27 15:48:20 +02:00
remote-signing.md docs: describe remote signing upgrade process 2022-10-03 13:33:31 +02:00
ruby-thing.rb docs: update contribution guidelines to add section on commit structure 2018-12-18 20:59:46 -08:00
safety.md docs: Remove pruned node warning. [skip ci] 2021-09-22 09:21:17 +02:00
wallet.md docs: add wallet management doc, fix markup in INSTALL doc 2021-05-06 12:23:46 +02:00
watchtower.md docs: fix typo in watchtower document and code comment [skip ci] 2022-09-13 22:06:30 +09:00
zero_conf_channels.md docs: add documentation for zero-conf channels 2022-08-10 14:25:11 -04:00