From e12e9fda9ba6a048b27be003ba4a8e4bcf2af998 Mon Sep 17 00:00:00 2001 From: NathanBSC Date: Tue, 28 Nov 2023 10:09:27 +0800 Subject: [PATCH] consensus/parlia: increase size of snapshot cache in parlia --- consensus/parlia/parlia.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/parlia/parlia.go b/consensus/parlia/parlia.go index f6be4a3199..e12594ae90 100644 --- a/consensus/parlia/parlia.go +++ b/consensus/parlia/parlia.go @@ -48,7 +48,7 @@ import ( ) const ( - inMemorySnapshots = 128 // Number of recent snapshots to keep in memory + inMemorySnapshots = 256 // Number of recent snapshots to keep in memory inMemorySignatures = 4096 // Number of recent block signatures to keep in memory checkpointInterval = 1024 // Number of blocks after which to save the snapshot to the database