diff --git a/crates/node-core/src/node_config.rs b/crates/node-core/src/node_config.rs index b7c2ce3f81ab6..932c12e704363 100644 --- a/crates/node-core/src/node_config.rs +++ b/crates/node-core/src/node_config.rs @@ -267,7 +267,7 @@ impl NodeConfig { } /// Loads '`EnvKzgSettings::Default`' - pub fn kzg_settings(&self) -> eyre::Result { + pub const fn kzg_settings(&self) -> eyre::Result { Ok(EnvKzgSettings::Default) } diff --git a/crates/node/builder/src/builder/mod.rs b/crates/node/builder/src/builder/mod.rs index 4b727cb611454..f23fc873e8859 100644 --- a/crates/node/builder/src/builder/mod.rs +++ b/crates/node/builder/src/builder/mod.rs @@ -470,7 +470,7 @@ impl BuilderContext { } /// Loads `EnvKzgSettings::Default`. - pub fn kzg_settings(&self) -> eyre::Result { + pub const fn kzg_settings(&self) -> eyre::Result { Ok(EnvKzgSettings::Default) } diff --git a/crates/primitives/benches/validate_blob_tx.rs b/crates/primitives/benches/validate_blob_tx.rs index bc3dee337d718..622168bb35f84 100644 --- a/crates/primitives/benches/validate_blob_tx.rs +++ b/crates/primitives/benches/validate_blob_tx.rs @@ -69,7 +69,9 @@ fn validate_blob_tx( // for now we just use the default SubPoolLimit group.bench_function(group_id, |b| { b.iter_with_setup(setup, |(tx, blob_sidecar)| { - if let Err(err) = std::hint::black_box(tx.validate_blob(&blob_sidecar, kzg_settings.get())) { + if let Err(err) = + std::hint::black_box(tx.validate_blob(&blob_sidecar, kzg_settings.get())) + { println!("Validation failed: {err:?}"); } }); diff --git a/crates/transaction-pool/src/validate/eth.rs b/crates/transaction-pool/src/validate/eth.rs index 8680a11e121f0..741f227991cf6 100644 --- a/crates/transaction-pool/src/validate/eth.rs +++ b/crates/transaction-pool/src/validate/eth.rs @@ -368,7 +368,7 @@ where } EthBlobTransactionSidecar::Present(blob) => { // validate the blob - if let Err(err) = transaction.validate_blob(&blob, &self.kzg_settings.get()) { + if let Err(err) = transaction.validate_blob(&blob, self.kzg_settings.get()) { return TransactionValidationOutcome::Invalid( transaction, InvalidPoolTransactionError::Eip4844(