]> git.bitcoin.ninja Git - rust-lightning/commit
Add a sample module FilesystemPersister.
authorValentine Wallace <vwallace@protonmail.com>
Wed, 16 Sep 2020 21:46:11 +0000 (17:46 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 16 Oct 2020 17:41:36 +0000 (13:41 -0400)
commit82f5a1cbdacd341a54bbf98f2835c0f8f6d8787a
treeecb44bdbcbcfe21538d925f607309a067f50444e
parent9c3f3e76e58586dd0d985ea9f58193e4a757512b
Add a sample module FilesystemPersister.

Intended to be a cross-platform implementation of the
channelmonitor::Persist trait.

This adds a new lightning-persister crate, that uses the
newly exposed lightning crate's test utilities.

Notably, this crate is pretty small right now. However, due to
future plans to add more data persistence (e.g. persisting the
ChannelManager, etc) and a desire to avoid pulling in filesystem
usage into the core lightning package, it is best for it to be
separated out.

Note: Windows necessitates the use of OpenOptions with the `write`
permission enabled to `sync_all` on a newly opened channel's
data file.
Cargo.toml
lightning-persister/Cargo.toml [new file with mode: 0644]
lightning-persister/src/lib.rs [new file with mode: 0644]
lightning/src/ln/functional_test_utils.rs