From 6430561c351843d895034c19603439374f23c03a Mon Sep 17 00:00:00 2001 From: harkamal Date: Sun, 11 Sep 2022 04:28:09 +0530 Subject: [PATCH] Increase stateCache size to fix headState missing in checkpoint sync start --- packages/beacon-node/src/chain/stateCache/stateContextCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/beacon-node/src/chain/stateCache/stateContextCache.ts b/packages/beacon-node/src/chain/stateCache/stateContextCache.ts index 35c799be6354..dd60109dac57 100644 --- a/packages/beacon-node/src/chain/stateCache/stateContextCache.ts +++ b/packages/beacon-node/src/chain/stateCache/stateContextCache.ts @@ -6,7 +6,7 @@ import {IMetrics} from "../../metrics/index.js"; import {MapTracker} from "./mapMetrics.js"; import {stateInternalCachePopulated} from "./stateContextCheckpointsCache.js"; -const MAX_STATES = 3 * 32; +const MAX_STATES = 6 * 32; /** * In memory cache of CachedBeaconState