lnd/contractcourt
Keagan McClelland 09f5e08d32
contractcourt: Fix heuristic for identifying STC commit broadcaster.
This commit fixes the heuristic we use for identifying the party
that broadcast a Simple Taproot Channel commitment transaction.

Prior to this change we checked if the last script element was an
OP_DROP. However, both the local and remote commitment outputs
have an OP_DROP at the end.

The new approach checks the resolver's SignDescriptor and compares
that key to the keys in the channel's local ChannelConfig. If the
key is the delay key, we know that it is our commitment transaction.
2024-07-17 14:57:28 -07:00
..
anchor_resolver.go sweep: remove unused param Fee 2024-04-23 04:44:00 +08:00
breach_arbitrator_test.go multi: fix complaints from IDE and linter 2024-06-07 00:45:15 +08:00
breach_arbitrator.go multi: apply the new type lntypes.WeightUnit 2024-05-25 13:37:13 +08:00
breach_resolver.go contractcourt: make sure sweep happens immediately on startup 2024-04-19 21:33:39 +08:00
briefcase_test.go contractcourt+sweep: offer direct-preimage spend via SweepInput 2024-04-19 21:33:35 +08:00
briefcase.go multi: fix linter errors 2023-08-22 16:34:15 -07:00
chain_arbitrator_test.go multi: query circuit map inside contractcourt 2024-04-19 21:33:35 +08:00
chain_arbitrator.go contractcourt+itest: make sure ChannelArbitrator has the latest htlcs 2024-05-21 00:53:23 +08:00
chain_watcher_test.go lnwallet+htlcswitch: add NewCommitState struct, modify send/recv sig to accept 2023-08-22 16:31:18 -07:00
chain_watcher.go contractcourt: properly detect RBF coop close transactions 2024-07-17 14:48:20 -07:00
channel_arbitrator_test.go contractcourt: share deadlines between CPFP anchors and HTLCs 2024-05-18 07:45:09 +08:00
channel_arbitrator.go contractcourt+itest: make sure ChannelArbitrator has the latest htlcs 2024-05-21 00:53:23 +08:00
commit_sweep_resolver_test.go sweep: remove unused param Fee 2024-04-23 04:44:00 +08:00
commit_sweep_resolver.go contractcourt: Fix heuristic for identifying STC commit broadcaster. 2024-07-17 14:57:28 -07:00
config_test.go contractcourt: specify deadline and budget for commit sweep 2024-04-19 21:33:33 +08:00
config.go contractcourt: specify deadline and budget for commit sweep 2024-04-19 21:33:33 +08:00
contract_resolver.go contractcourt: make sure sweep happens immediately on startup 2024-04-19 21:33:39 +08:00
htlc_incoming_contest_resolver_test.go multi: return route role from HopPayload 2024-04-25 09:46:31 -04:00
htlc_incoming_contest_resolver.go multi: return route role from HopPayload 2024-04-25 09:46:31 -04:00
htlc_lease_resolver.go contractcourt: unify the lease specific HTLC sweeping logic 2022-06-01 16:42:33 -07:00
htlc_outgoing_contest_resolver_test.go contractcourt: make sure sweep happens immediately on startup 2024-04-19 21:33:39 +08:00
htlc_outgoing_contest_resolver.go contractcourt: make sure sweep happens immediately on startup 2024-04-19 21:33:39 +08:00
htlc_success_resolver_test.go contractcourt: make sure sweep happens immediately on startup 2024-04-19 21:33:39 +08:00
htlc_success_resolver.go contractcourt: make sure sweep happens immediately on startup 2024-04-19 21:33:39 +08:00
htlc_timeout_resolver_test.go contractcourt: make sure sweep happens immediately on startup 2024-04-19 21:33:39 +08:00
htlc_timeout_resolver.go contractcourt: make sure sweep happens immediately on startup 2024-04-19 21:33:39 +08:00
interfaces.go sweep+contractcourt: replace ParamsUpdate with Params 2024-04-19 21:33:38 +08:00
log.go multi: move breach arbiter and utxo nursery into contractcourt package 2021-09-27 19:10:31 -07:00
mock_htlcnotifier_test.go multi: create channeldb/models package 2023-01-16 07:14:55 -08:00
mock_registry_test.go multi: extend InvoiceDB methods with a context argument (#8066) 2023-10-11 13:42:59 +02:00
nursery_store_test.go multi: add new build tag integration 2023-02-23 21:56:09 +08:00
nursery_store.go Merge pull request #8658 from hidewrong/master 2024-04-24 10:56:20 -06:00
setup_test.go channeldb/test: test with postgres 2021-10-29 10:54:44 +02:00
taproot_briefcase_test.go contractcourt: fix test flake in TestTaprootBriefcase 2023-09-05 07:44:02 +08:00
taproot_briefcase.go multi: fix linter warnings with updated linter 2023-08-22 16:34:47 -07:00
utils_test.go multi: replace defer cleanup with t.Cleanup 2022-10-13 17:46:54 +08:00
utxonursery_test.go contractcourt: specify deadline and budget for nursery 2024-04-19 21:33:34 +08:00
utxonursery.go contractcourt: specify deadline and budget for nursery 2024-04-19 21:33:34 +08:00