Skip to content

Commit 1d60c3d

Browse files
committed
graph: Set default BLOCK_CACHE_SIZE to i32::MAX
That makes it so that the new mechanism for setting the block cache size has no effect by default
1 parent 277f45e commit 1d60c3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graph/src/components/store/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ pub trait ChainIdStore: Send + Sync + 'static {
528528
/// The default size for the block cache, i.e., how many blocks behind
529529
/// the chain head we should keep in the database cache. The
530530
/// configuration can change this for individual chains
531-
pub const BLOCK_CACHE_SIZE: BlockNumber = 500;
531+
pub const BLOCK_CACHE_SIZE: BlockNumber = i32::MAX;
532532

533533
/// Common trait for blockchain store implementations.
534534
#[async_trait]

0 commit comments

Comments
 (0)