Skip to main content

ckb_app_config/configs/
store.rs

1use serde::Serialize;
2
3// The default values are set in the legacy version.
4/// Store config options.
5#[derive(Copy, Clone, Serialize, Eq, PartialEq, Hash, Debug)]
6pub struct Config {
7    /// The maximum number of cached block headers.
8    pub header_cache_size: usize,
9    /// The maximum number of cached cell data.
10    pub cell_data_cache_size: usize,
11    /// The maximum number of blocks which proposals section is cached.
12    pub block_proposals_cache_size: usize,
13    /// The maximum number of blocks which tx hashes are cached.
14    pub block_tx_hashes_cache_size: usize,
15    /// The maximum number of blocks which uncles section is cached.
16    pub block_uncles_cache_size: usize,
17    /// The maximum number of blocks which extension section is cached.
18    pub block_extensions_cache_size: usize,
19    /// whether enable freezer
20    pub freezer_enable: bool,
21}