lnd/lntest/itest
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
..
assertions.go lnrpc/peers: handle net address changes in updateNodeAnnouncement 2022-04-02 19:09:10 -07:00
lnd_amp_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
lnd_channel_backup_test.go lntest/itest: use T.TempDir to create temporary test directory 2022-08-24 09:03:04 +08:00
lnd_channel_balance_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
lnd_channel_force_close_test.go multi: fix make fmt 2022-08-23 22:10:24 +08:00
lnd_channel_graph_test.go lnrpc/peers: handle feature bit changes in updateNodeAnnouncement 2022-04-02 19:10:25 -07:00
lnd_channel_policy_test.go itest: openchannel fee scenarios 2022-09-29 08:31:47 -04:00
lnd_etcd_failover_test.go lntest/itest: use T.TempDir to create temporary test directory 2022-08-24 09:03:04 +08:00
lnd_forward_interceptor_test.go multi: fix make fmt 2022-08-23 22:10:24 +08:00
lnd_funding_test.go itest: add new funding test with all input types 2022-05-10 20:35:28 +02:00
lnd_hold_invoice_force_test.go multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
lnd_hold_persistence_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
lnd_macaroons_test.go itest: manage context within HarnessNode 2021-12-04 14:54:36 +08:00
lnd_max_channel_size_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
lnd_max_htlcs_test.go itest: manage context within HarnessNode 2021-12-04 14:54:36 +08:00
lnd_misc_test.go lntest: adds test for list addresses 2022-08-18 08:09:16 +05:30
lnd_mpp_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
lnd_multi-hop_htlc_aggregation_test.go itest: zero-conf, scid-alias channel-type integration tests 2022-07-07 17:10:30 -04:00
lnd_multi-hop_htlc_local_chain_claim_test.go itest: zero-conf, scid-alias channel-type integration tests 2022-07-07 17:10:30 -04:00
lnd_multi-hop_htlc_local_timeout_test.go itest: zero-conf, scid-alias channel-type integration tests 2022-07-07 17:10:30 -04:00
lnd_multi-hop_htlc_receiver_chain_claim_test.go itest: zero-conf, scid-alias channel-type integration tests 2022-07-07 17:10:30 -04:00
lnd_multi-hop_htlc_remote_chain_claim_test.go itest: zero-conf, scid-alias channel-type integration tests 2022-07-07 17:10:30 -04:00
lnd_multi-hop_local_force_close_on_chain_htlc_timeout_test.go itest: zero-conf, scid-alias channel-type integration tests 2022-07-07 17:10:30 -04:00
lnd_multi-hop_remote_force_close_on_chain_htlc_timeout_test.go itest: zero-conf, scid-alias channel-type integration tests 2022-07-07 17:10:30 -04:00
lnd_multi-hop_test.go lntest: update zero-conf tests to account for zeroconfacceptor 2022-08-12 16:36:17 -04:00
lnd_multi-hop-error-propagation_test.go itest: manage context within HarnessNode 2021-12-04 14:54:36 +08:00
lnd_multi-hop-payments_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
lnd_network_test.go itest: test config option for picking particular peers 2022-04-19 12:37:44 -05:00
lnd_no_etcd_dummy_failover_test.go
lnd_nonstd_sweep_test.go sweep: account for all script types in craftSweepTx 2022-08-08 15:33:00 -04:00
lnd_onchain_test.go itest: add integration tests for tapscript import 2022-08-25 09:21:52 +02:00
lnd_open_channel_test.go itest: openchannel fee scenarios 2022-09-29 08:31:47 -04:00
lnd_payment_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
lnd_psbt_test.go itest: fix sign_psbt failure 2022-07-19 12:41:34 -05:00
lnd_recovery_test.go build: update to latest version of btcwallet w/ taproot estimation fix 2022-09-27 11:24:39 -07:00
lnd_remote_signer_test.go itest: cover sign and verify msg 2022-07-14 10:29:29 +02:00
lnd_res_handoff_test.go htlcswitch+lntest: modify Switch to persist resolution messages 2022-04-29 16:40:19 -04:00
lnd_rest_api_test.go itest: fix REST WebSocket ping/pong itest 2021-11-02 20:36:26 +01:00
lnd_revocation_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
lnd_routing_test.go multi: fix make fmt 2022-08-23 22:10:24 +08:00
lnd_rpc_middleware_interceptor_test.go multi: registration complete MW interceptor msg 2022-07-20 14:58:47 -05:00
lnd_send_multi_path_payment_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
lnd_signer_test.go itest: add integration tests for tapscript import 2022-08-25 09:21:52 +02:00
lnd_single_hop_invoice_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
lnd_switch_test.go multi: fix make fmt 2022-08-23 22:10:24 +08:00
lnd_taproot_test.go itest: add integration tests for tapscript import 2022-08-25 09:21:52 +02:00
lnd_test_list_off_test.go
lnd_test_list_on_test.go itest: openchannel fee scenarios 2022-09-29 08:31:47 -04:00
lnd_test.go multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
lnd_trackpayments_test.go lntest: add trackpayments itest 2022-09-08 10:48:34 +02:00
lnd_wallet_import_test.go lnwallet/chancloser: properly compute initial fee of cop close txn 2022-10-10 14:50:45 -07:00
lnd_wipe_fwdpkgs_test.go multi: fix make fmt 2022-08-23 22:10:24 +08:00
lnd_wumbo_channels_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
lnd_zero_conf_test.go lntest: update zero-conf tests to account for zeroconfacceptor 2022-08-12 16:36:17 -04:00
log_check_errors.sh
log_error_whitelist.txt
log_substitutions.txt
test_harness.go itest: add integration tests for tapscript import 2022-08-25 09:21:52 +02:00
utils.go lntest: adds test for list addresses 2022-08-18 08:09:16 +05:30