Skip to content

Commit 2471c3e

Browse files
Remove support for loading custom trusted setup (#15290)
1 parent 28fea04 commit 2471c3e

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

bin/reth/src/commands/debug_cmd/build_block.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ pub struct Command<C: ChainSpecParser> {
4848
#[command(flatten)]
4949
env: EnvironmentArgs<C>,
5050

51-
/// Overrides the KZG trusted setup by reading from the supplied file.
52-
#[arg(long, value_name = "PATH")]
53-
trusted_setup_file: Option<PathBuf>,
54-
5551
#[arg(long)]
5652
parent_beacon_block_root: Option<B256>,
5753

@@ -99,16 +95,9 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
9995
))
10096
}
10197

102-
/// Loads the trusted setup params from a given file path or falls back to
103-
/// `EnvKzgSettings::Default`.
98+
/// Returns the default KZG settings
10499
fn kzg_settings(&self) -> eyre::Result<EnvKzgSettings> {
105-
if let Some(ref trusted_setup_file) = self.trusted_setup_file {
106-
EnvKzgSettings::load_from_trusted_setup_file(trusted_setup_file).wrap_err_with(|| {
107-
format!("Failed to load trusted setup file: {:?}", trusted_setup_file)
108-
})
109-
} else {
110-
Ok(EnvKzgSettings::Default)
111-
}
100+
Ok(EnvKzgSettings::Default)
112101
}
113102

114103
/// Execute `debug in-memory-merkle` command

book/cli/reth/debug/build-block.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ Database:
7878
--db.read-transaction-timeout <READ_TRANSACTION_TIMEOUT>
7979
Read transaction timeout in seconds, 0 means no timeout
8080
81-
--trusted-setup-file <PATH>
82-
Overrides the KZG trusted setup by reading from the supplied file
83-
8481
--parent-beacon-block-root <PARENT_BEACON_BLOCK_ROOT>
8582
8683

0 commit comments

Comments
 (0)