lnd.xprv/contractcourt
Olaoluwa Osuntokun 2011ccc571
contractcourt: write confirmed CommitSet to disk before MarkChannelClosed
In this commit, we make a series of changes to ensure that we'll be able
to properly survive restarts if we crash right after we call
MarkChannelClosed. In order to ensure we can survive restarts, we'll now
long the confirmed CommitSet to disk right before we close the channel.
Upon restart, we'll read these from disk so we can pick up where we left
over.

Additionally, we also will now consult the legacy chain actions if it
turns out that the channel has been closed, but we don't have a
confCommitSet written to disk. This will only be the case for nodes that
had pending close channels before this commitment.
2019-05-27 15:26:46 -07:00
..
briefcase_test.go contractcourt: add storage for the confirmed CommitSet 2019-05-27 15:26:44 -07:00
briefcase.go contractcourt: add storage for the confirmed CommitSet 2019-05-27 15:26:44 -07: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: write confirmed CommitSet to disk before MarkChannelClosed 2019-05-27 15:26:46 -07:00
chain_watcher_test.go multi: address lingering TODO by no longer wiping out local HTLCs on remote close 2019-05-27 14:34:13 -07:00
chain_watcher.go contractcourt: add new checkLocalChainActions method use in main state step 2019-05-27 15:26:36 -07:00
channel_arbitrator_test.go contractcourt: write confirmed CommitSet to disk before MarkChannelClosed 2019-05-27 15:26:46 -07:00
channel_arbitrator.go contractcourt: write confirmed CommitSet to disk before MarkChannelClosed 2019-05-27 15:26:46 -07:00
commit_sweep_resolver.go cnct: fix error returning bug 2019-02-26 12:56:21 -03: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+htlcswitch+invoices: move invoice parameter check out of link 2019-05-15 14:42:12 +02:00
htlc_incoming_resolver_test.go cnct/test: add incoming contest resolver test 2019-05-15 14:42:18 +02:00
htlc_outgoing_contest_resolver.go contractcourt: extract which timeout HTLC output to watch into new method 2019-03-19 16:50:09 -07:00
htlc_success_resolver.go cnct+htlcswitch+invoices: move invoice parameter check out of link 2019-05-15 14:42:12 +02:00
htlc_timeout_resolver_test.go cnct/test: extend mockWitnessBeacon 2019-05-15 14:42:15 +02:00
htlc_timeout_resolver.go contractcourt: simplify htlcTimeoutResolver, unify with HTLC contest logic 2019-03-19 16:50:27 -07:00
interfaces.go cnct+htlcswitch+invoices: move invoice parameter check out of link 2019-05-15 14:42:12 +02:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00
mock_registry_test.go cnct/test: add incoming contest resolver test 2019-05-15 14:42:18 +02:00
utils_test.go cnct/test: add incoming contest resolver test 2019-05-15 14:42:18 +02:00