Compress snapshot archive within the validator to reduce system dependencies, and default to zstd compression (bp #12085) (#12087)

* Compress snapshot archive within the validator to reduce system dependencies

(cherry picked from commit d3750b47d2)

* Default snapshot compression to zstd instead of bzip2 for quicker snapshot generation

(cherry picked from commit 9ade73841f)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2020-09-07 06:55:38 +00:00
committed by GitHub
parent aac38516da
commit f3f86f43ee
2 changed files with 67 additions and 34 deletions

View File

@@ -1059,7 +1059,7 @@ pub fn main() {
exit(1);
});
let mut snapshot_compression = CompressionType::Bzip2;
let mut snapshot_compression = CompressionType::Zstd;
if let Ok(compression_str) = value_t!(matches, "snapshot_compression", String) {
match compression_str.as_str() {
"bz2" => snapshot_compression = CompressionType::Bzip2,