From 983c7d99afd84cfdeb801cc95b233cb0f296d9f7 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 30 Aug 2024 06:40:25 +1000 Subject: [PATCH] DO NOT MERGE: make blocks 2 MB --- crates/sc-consensus-subspace/src/archiver.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/sc-consensus-subspace/src/archiver.rs b/crates/sc-consensus-subspace/src/archiver.rs index 018277dfaef..319eeae62e2 100644 --- a/crates/sc-consensus-subspace/src/archiver.rs +++ b/crates/sc-consensus-subspace/src/archiver.rs @@ -514,7 +514,10 @@ where } } - signed_block.encode() + const LARGE_BLOCK: usize = 2 * 1024 * 1024; + let mut block = signed_block.encode(); + block.resize(LARGE_BLOCK, 0); + block } }