From 2d3a33720082ba2da95139ec36a1b80f552f82aa Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Fri, 11 Dec 2020 20:01:22 +0900 Subject: [PATCH] Increase another snapshot limit: UNPACKED_COUNT (#14071) --- 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;