From 069f83be97129a165187eaa50d137e4b8b9d1161 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 11 Dec 2020 12:25:10 +0000 Subject: [PATCH] Increase another snapshot limit: UNPACKED_COUNT (#14071) (#14073) (cherry picked from commit 2d3a33720082ba2da95139ec36a1b80f552f82aa) Co-authored-by: Ryo Onodera --- runtime/src/hardened_unpack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/hardened_unpack.rs b/runtime/src/hardened_unpack.rs index 079829d671..4a414b4905 100644 --- a/runtime/src/hardened_unpack.rs +++ b/runtime/src/hardened_unpack.rs @@ -38,7 +38,7 @@ const MAX_SNAPSHOT_ARCHIVE_UNPACKED_APPARENT_SIZE: u64 = 64 * 1024 * 1024 * 1024 // This is the actually consumed disk usage for sparse files const MAX_SNAPSHOT_ARCHIVE_UNPACKED_ACTUAL_SIZE: u64 = 4 * 1024 * 1024 * 1024 * 1024; -const MAX_SNAPSHOT_ARCHIVE_UNPACKED_COUNT: u64 = 500_000; +const MAX_SNAPSHOT_ARCHIVE_UNPACKED_COUNT: u64 = 5_000_000; pub const MAX_GENESIS_ARCHIVE_UNPACKED_SIZE: u64 = 10 * 1024 * 1024; // 10 MiB const MAX_GENESIS_ARCHIVE_UNPACKED_COUNT: u64 = 100;