lnd/contractcourt
yyforyongyu 1470adbed2
contractcourt: share deadlines between CPFP anchors and HTLCs
This commit changes how the deadline is calculated for CPFP anchor
sweeping. In order to sweep the second-level HTLCs, we need to first
get the FC tx confirmed. If we use a larger conf target for CPFP, we'd
end up having few blocks to sweep the HTLCs, as these two sweeping txns
share the deadline of the HTLC, as shown below,
```
More aggressive on the CPFP part.
|-CPFP-|-----HTLC-----|

Share the deadlines evenly.
|---CPFP---|---HTLC---|

More aggressive on the HTLC part.
|-----CPFP-----|-HTLC-|
```
In this commit, we decide to share the deadlines evenly as a starting
point so neither side will have a short of deadlines.
2024-05-18 07:45:09 +08:00
..
anchor_resolver.go sweep: remove unused param Fee 2024-04-23 04:44:00 +08:00
breach_arbitrator_test.go multi: make input.OutPoint return wire.OutPoint 2024-04-19 21:33:32 +08:00
breach_arbitrator.go multi: make input.OutPoint return wire.OutPoint 2024-04-19 21:33:32 +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: add locks in SubscribeChannelEvents 2024-04-19 21:33:35 +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 multi: fix fmt.Errorf error wrapping 2024-02-27 11:13:40 +00: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: share deadlines between CPFP anchors and HTLCs 2024-05-18 07:45:09 +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: make sure sweep happens immediately on startup 2024-04-19 21:33:39 +08: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