795c9f1550
In this commit, we add a new test case to exercise the way we handle the DLP detection and dispatch within the chain watcher. Briefly, we use the `testing/quick` package to ensure that the following invariant is always held: "if we do N state updates, then state M is broadcast, iff M > N, we'll execute the DLP protocol". We limit the number of iterations to 10 for now, as the tests can take a bit of time to execute, since it actually does proper state transitions. |
||
---|---|---|
.. | ||
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.go | ||
contract_resolvers_test.go | ||
contract_resolvers.go | ||
htlc_incoming_contest_resolver.go | ||
htlc_outgoing_contest_resolver.go | ||
htlc_success_resolver.go | ||
htlc_timeout_resolver.go | ||
log.go |