]> git.bitcoin.ninja Git - rust-lightning/commitdiff
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)
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.


No differences found