From 0e776feb9a76b5a799a2c8df3a7cfef16b1b6549 Mon Sep 17 00:00:00 2001 From: Shreyan Gupta Date: Wed, 30 Oct 2024 14:39:56 +0530 Subject: [PATCH] [fix] Set BLOCK_CACHE_SIZE to 1 in epoch manager for no_cache feature (#12338) Auto fixed issue https://github.com/near/nearcore/issues/5080 --- chain/epoch-manager/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/epoch-manager/src/lib.rs b/chain/epoch-manager/src/lib.rs index d0721aaf73a..f34e60c4796 100644 --- a/chain/epoch-manager/src/lib.rs +++ b/chain/epoch-manager/src/lib.rs @@ -60,7 +60,7 @@ mod validator_selection; mod validator_stats; const EPOCH_CACHE_SIZE: usize = if cfg!(feature = "no_cache") { 1 } else { 50 }; -const BLOCK_CACHE_SIZE: usize = if cfg!(feature = "no_cache") { 5 } else { 1000 }; // TODO(#5080): fix this +const BLOCK_CACHE_SIZE: usize = if cfg!(feature = "no_cache") { 1 } else { 1000 }; const AGGREGATOR_SAVE_PERIOD: u64 = 1000; /// In the current architecture, various components have access to the same