Add kzg trusted setup file cli param and load into beacon chain

This commit is contained in:
Pawan Dhananjay
2022-11-28 16:54:16 +05:30
parent 3c9e1abcb7
commit 3075b82ea0
8 changed files with 46 additions and 2 deletions

View File

@@ -188,6 +188,12 @@ where
builder
};
let builder = if let Some(trusted_setup_file) = config.trusted_setup_file {
builder.trusted_setup(trusted_setup_file)
} else {
builder
};
let chain_exists = builder.store_contains_beacon_chain().unwrap_or(false);
// If the client is expect to resume but there's no beacon chain in the database,

View File

@@ -68,6 +68,7 @@ pub struct Config {
pub chain: beacon_chain::ChainConfig,
pub eth1: eth1::Config,
pub execution_layer: Option<execution_layer::Config>,
pub trusted_setup_file: Option<PathBuf>,
pub http_api: http_api::Config,
pub http_metrics: http_metrics::Config,
pub monitoring_api: Option<monitoring_api::Config>,
@@ -90,6 +91,7 @@ impl Default for Config {
sync_eth1_chain: false,
eth1: <_>::default(),
execution_layer: None,
trusted_setup_file: None,
graffiti: Graffiti::default(),
http_api: <_>::default(),
http_metrics: <_>::default(),