Integrate Persist into ChainMonitor.
authorValentine Wallace <vwallace@protonmail.com>
Tue, 15 Sep 2020 00:50:04 +0000 (20:50 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 16 Oct 2020 15:30:34 +0000 (11:30 -0400)
commit9c3f3e76e58586dd0d985ea9f58193e4a757512b
tree4ea54b7b5089fe503d1e0e16090a4e22564fdb1f
parentec4715c09b41b4d9c3098538c04c6ca3ee4f2691
Integrate Persist into ChainMonitor.

- The ChainMonitor should:
  Whenever a new channel is added or updated, these updates
  should be conveyed to the persister and persisted to disk.
  Even if the update errors while it's being applied, the
  updated monitor still needs to be persisted.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
fuzz/src/utils/mod.rs
fuzz/src/utils/test_persister.rs [new file with mode: 0644]
lightning-net-tokio/src/lib.rs
lightning/src/chain/chainmonitor.rs
lightning/src/chain/channelmonitor.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/test_utils.rs