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,