lnd/contractcourt
Carla Kirk-Cohen 776c889267
multi: return route role from HopPayload
We need to know what role we're playing to be able to handle errors
correctly, but the information that we need for this is held by our
iterator:
- Whether we had a blinding point in update add (blinding kit)
- Whether we had a blinding point in payload

As we're now going to use the route role return value even when our
err!=nil, we rename the error to signal that we're using less
canonical golang here.

An alternative to this approach is to attach a RouteRole to our
ErrInvalidPayload. The downside of that approach is:
- Propagate context through parsing (whether we had updateAddHtlc)
- Clumsy handling for errors that are not of type ErrInvalidPayload
2024-04-25 09:46:31 -04: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 multi: query circuit map inside contractcourt 2024-04-19 21:33:35 +08:00
channel_arbitrator.go contractcourt: remove unused param to please linter 2024-04-19 21:33:39 +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