faa5f340fd
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. |
||
---|---|---|
.. | ||
briefcase_test.go | ||
briefcase.go | ||
chain_arbitrator_test.go | ||
chain_arbitrator.go | ||
chain_watcher_test.go | ||
chain_watcher.go | ||
channel_arbitrator_test.go | ||
channel_arbitrator.go | ||
commit_sweep_resolver_test.go | ||
commit_sweep_resolver.go | ||
contract_resolvers.go | ||
htlc_incoming_contest_resolver.go | ||
htlc_incoming_resolver_test.go | ||
htlc_outgoing_contest_resolver_test.go | ||
htlc_outgoing_contest_resolver.go | ||
htlc_success_resolver.go | ||
htlc_timeout_resolver_test.go | ||
htlc_timeout_resolver.go | ||
interfaces.go | ||
log.go | ||
mock_registry_test.go | ||
utils_test.go |