mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-04 05:14:33 +00:00
Set epochs-per-blob-prune default to 256 (#7113)
Partially #7100 Set blob pruning to default to once per day
This commit is contained in:
@@ -1009,7 +1009,7 @@ pub fn cli_app() -> Command {
|
|||||||
database when they are older than the data availability boundary \
|
database when they are older than the data availability boundary \
|
||||||
relative to the current epoch.")
|
relative to the current epoch.")
|
||||||
.action(ArgAction::Set)
|
.action(ArgAction::Set)
|
||||||
.default_value("1")
|
.default_value("256")
|
||||||
.display_order(0)
|
.display_order(0)
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ Options:
|
|||||||
--epochs-per-blob-prune <EPOCHS>
|
--epochs-per-blob-prune <EPOCHS>
|
||||||
The epoch interval with which to prune blobs from Lighthouse's
|
The epoch interval with which to prune blobs from Lighthouse's
|
||||||
database when they are older than the data availability boundary
|
database when they are older than the data availability boundary
|
||||||
relative to the current epoch. [default: 1]
|
relative to the current epoch. [default: 256]
|
||||||
--epochs-per-migration <N>
|
--epochs-per-migration <N>
|
||||||
The number of epochs to wait between running the migration of data
|
The number of epochs to wait between running the migration of data
|
||||||
from the hot DB to the cold DB. Less frequent runs can be useful for
|
from the hot DB to the cold DB. Less frequent runs can be useful for
|
||||||
|
|||||||
@@ -1972,7 +1972,7 @@ fn prune_blobs_on_startup_false() {
|
|||||||
fn epochs_per_blob_prune_default() {
|
fn epochs_per_blob_prune_default() {
|
||||||
CommandLineTest::new()
|
CommandLineTest::new()
|
||||||
.run_with_zero_port()
|
.run_with_zero_port()
|
||||||
.with_config(|config| assert!(config.store.epochs_per_blob_prune == 1));
|
.with_config(|config| assert_eq!(config.store.epochs_per_blob_prune, 256));
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
fn epochs_per_blob_prune_on_startup_five() {
|
fn epochs_per_blob_prune_on_startup_five() {
|
||||||
|
|||||||
Reference in New Issue
Block a user