mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 05:48:31 +00:00
Change default epochs-per-state-diff to 16
This should make replaying diffs during non-finality a bit quicker.
This commit is contained in:
@@ -752,7 +752,7 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
|||||||
.help("Number of epochs between state diffs stored in the database. Lower values \
|
.help("Number of epochs between state diffs stored in the database. Lower values \
|
||||||
result in more writes and more data stored, while higher values result in \
|
result in more writes and more data stored, while higher values result in \
|
||||||
more block replaying and longer load times in case of cache miss.")
|
more block replaying and longer load times in case of cache miss.")
|
||||||
.default_value("4")
|
.default_value("16")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
)
|
)
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ use ssz_derive::{Decode, Encode};
|
|||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use zstd::Encoder;
|
use zstd::Encoder;
|
||||||
|
|
||||||
pub const DEFAULT_EPOCHS_PER_STATE_DIFF: u64 = 4;
|
pub const DEFAULT_EPOCHS_PER_STATE_DIFF: u64 = 16;
|
||||||
pub const DEFAULT_BLOCK_CACHE_SIZE: usize = 64;
|
pub const DEFAULT_BLOCK_CACHE_SIZE: usize = 64;
|
||||||
pub const DEFAULT_STATE_CACHE_SIZE: usize = 128;
|
pub const DEFAULT_STATE_CACHE_SIZE: usize = 128;
|
||||||
pub const DEFAULT_COMPRESSION_LEVEL: i32 = 1;
|
pub const DEFAULT_COMPRESSION_LEVEL: i32 = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user