grin/store
Mark Renten 5ccaf8cc67 functional version - cleanup pmmr_leaf snapshot files (from fast-sync) (#2109)
* Issue #1348 - cleanup pmmr_leaf snapshot files (from fast-sync)

* create a new function in store::pmmr to delete files
* call the new function during compaction
* create test coverage for the new function

* formatting

* Fix rustdoc issue

I had to add a text annotation to the preformatted block to prevent cargo from creating a doctest.

* don't delete files that were recently accessed

* parameterize the age in the cleanup function
* add a new constant defining how long the rewind files should be saved for
* enhance the unit test to include files that were too new to be deleted and files that were old enough to be deleted

* formatting

* formatting

* remove errant println statement

* functional style change
2018-12-10 09:35:25 +00:00
..
src functional version - cleanup pmmr_leaf snapshot files (from fast-sync) (#2109) 2018-12-10 09:35:25 +00:00
tests functional version - cleanup pmmr_leaf snapshot files (from fast-sync) (#2109) 2018-12-10 09:35:25 +00:00
Cargo.toml functional version - cleanup pmmr_leaf snapshot files (from fast-sync) (#2109) 2018-12-10 09:35:25 +00:00