lnd.xprv/contractcourt
Olaoluwa Osuntokun 795c9f1550
contractcourt: add new TestChainWatcherDataLossProtect test case
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.
2019-03-13 17:31:21 -07:00
..
briefcase_test.go cnct: use sweeper in commit resolver 2019-02-01 09:20:45 +01:00
briefcase.go multi: move Input interface and related code 2019-01-31 13:25:33 +01:00
chain_arbitrator_test.go contractcourt: add new ChainArbitrator struct as central coordinator of package 2018-01-22 19:19:36 -08:00
chain_arbitrator.go contractcourt: abstract call to GetStateNumHint within the closeObserver 2019-03-13 17:31:20 -07:00
chain_watcher_test.go contractcourt: add new TestChainWatcherDataLossProtect test case 2019-03-13 17:31:21 -07:00
chain_watcher.go contractcourt: abstract call to GetStateNumHint within the closeObserver 2019-03-13 17:31:20 -07:00
channel_arbitrator_test.go Merge pull request #2356 from joostjager/invoices-subserver 2019-02-01 17:19:58 -08:00
channel_arbitrator.go cnct+lnwl+hswc: use lntypes.Preimage for witness beacon 2019-02-19 17:06:00 -08:00
commit_sweep_resolver.go cnct: fix error returning bug 2019-02-26 12:56:21 -03:00
contract_resolvers_test.go contractcourt: add complete ContractResolver implementations 2018-01-22 19:19:36 -08:00
contract_resolvers.go cnct: expose non-incubating htlcs after channel force close 2019-02-01 09:36:47 +01:00
htlc_incoming_contest_resolver.go cnct+lnwl+hswc: use lntypes.Preimage for witness beacon 2019-02-19 17:06:00 -08:00
htlc_outgoing_contest_resolver.go cnct+lnwl+hswc: use lntypes.Preimage for witness beacon 2019-02-19 17:06:00 -08:00
htlc_success_resolver.go cnct+lnwl+hswc: use lntypes.Preimage for witness beacon 2019-02-19 17:06:00 -08:00
htlc_timeout_resolver.go cnct: make original htlc amt available for contract resolvers 2019-01-22 20:47:17 -08:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00