lnd/contractcourt
Olaoluwa Osuntokun faa5f340fd
contractcourt: export ResolveContract, update to stop channel arb
In this commit, we export the `ResolveContract` method as it's useful as
a way to manually remove active contracts from the chain and channel
arbitrator. Along the way, we also update the method to also attempt to
stop the channel arb if it exists. This allows an external party to
remove all state with a single call. Before this commit, it was assumed
that this method was only called by the channel arb itself, when it was
already on the way to exiting after all contracts were fully resolved.

We also add a set of unit tests to exercise the intended behavior as
this method is now public.
2019-11-20 17:42:52 -08:00
..
briefcase_test.go cnct: store full htlc struct inside resolver 2019-11-12 15:01:36 +01:00
briefcase.go cnct: add new from reader resolver initializers 2019-11-11 14:35:28 +01:00
chain_arbitrator_test.go contractcourt: export ResolveContract, update to stop channel arb 2019-11-20 17:42:52 -08:00
chain_arbitrator.go contractcourt: export ResolveContract, update to stop channel arb 2019-11-20 17:42:52 -08:00
chain_watcher_test.go cnct/test: add unit test for commit sweep resolver 2019-11-14 13:38:06 +01:00
chain_watcher.go lnwallet+contractcourt: publicly export DeriveCommitmentKeys use in chain watcher 2019-09-25 18:26:13 -07:00
channel_arbitrator_test.go utxonursery: remove unused commit sweep code 2019-11-14 13:38:03 +01:00
channel_arbitrator.go cnct: remove nursery dependency in commit sweep resolver 2019-11-14 13:38:01 +01:00
commit_sweep_resolver_test.go cnct/test: add unit test for commit sweep resolver 2019-11-14 13:38:06 +01:00
commit_sweep_resolver.go cnct: remove nursery dependency in commit sweep resolver 2019-11-14 13:38:01 +01:00
contract_resolvers.go cnct: prefix logger for commit sweep resolver 2019-11-13 10:17:24 +01:00
htlc_incoming_contest_resolver.go cnct: add resolver report output type 2019-11-13 10:17:28 +01:00
htlc_incoming_resolver_test.go cnct: fix incoming resolver assertion 2019-11-13 10:17:22 +01:00
htlc_outgoing_contest_resolver_test.go cnct: parse onion for resolvers 2019-11-12 15:01:39 +01:00
htlc_outgoing_contest_resolver.go cnct: add resolver report output type 2019-11-13 10:17:28 +01:00
htlc_success_resolver.go utxonursery: remove unused commit sweep code 2019-11-14 13:38:03 +01:00
htlc_timeout_resolver_test.go utxonursery: remove unused commit sweep code 2019-11-14 13:38:03 +01:00
htlc_timeout_resolver.go utxonursery: remove unused commit sweep code 2019-11-14 13:38:03 +01:00
interfaces.go cnct: create sweeper interface 2019-11-14 13:38:04 +01:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00
mock_registry_test.go multi: replace NotifyExitHopHtlc eob param with hop.Payload 2019-11-04 15:10:32 -08:00
utils_test.go cnct/test: add incoming contest resolver test 2019-05-15 14:42:18 +02:00