chore: correct the comments (#14339)

This commit is contained in:
Fallengirl
2025-02-10 19:32:36 +01:00
committed by GitHub
parent fe322379ff
commit 731b771fa2
7 changed files with 8 additions and 8 deletions

View File

@ -34,7 +34,7 @@ pub fn get_or_create_jwt_secret_from_path(path: &Path) -> Result<JwtSecret, JwtE
} }
} }
/// Get a single header from network /// Get a single header from the network
pub async fn get_single_header<Client>( pub async fn get_single_header<Client>(
client: Client, client: Client,
id: BlockHashOrNumber, id: BlockHashOrNumber,
@ -68,7 +68,7 @@ where
Ok(header) Ok(header)
} }
/// Get a body from network based on header /// Get a body from the network based on header
pub async fn get_single_body<B, Client>( pub async fn get_single_body<B, Client>(
client: Client, client: Client,
header: SealedHeader<B::Header>, header: SealedHeader<B::Header>,

View File

@ -15,7 +15,7 @@
//! - `min-error-logs`: Disables all logs below `error` level. //! - `min-error-logs`: Disables all logs below `error` level.
//! - `min-warn-logs`: Disables all logs below `warn` level. //! - `min-warn-logs`: Disables all logs below `warn` level.
//! - `min-info-logs`: Disables all logs below `info` level. This can speed up the node, since fewer //! - `min-info-logs`: Disables all logs below `info` level. This can speed up the node, since fewer
//! calls to the logging component is made. //! calls to the logging component are made.
//! - `min-debug-logs`: Disables all logs below `debug` level. //! - `min-debug-logs`: Disables all logs below `debug` level.
//! - `min-trace-logs`: Disables all logs below `trace` level. //! - `min-trace-logs`: Disables all logs below `trace` level.
#![doc( #![doc(

View File

@ -61,7 +61,7 @@ impl<C: ChainSpecParser<ChainSpec = OpChainSpec>> InitStateCommandOp<C> {
)?; )?;
// SAFETY: it's safe to commit static files, since in the event of a crash, they // SAFETY: it's safe to commit static files, since in the event of a crash, they
// will be unwinded according to database checkpoints. // will be unwound according to database checkpoints.
// //
// Necessary to commit, so the BEDROCK_HEADER is accessible to provider_rw and // Necessary to commit, so the BEDROCK_HEADER is accessible to provider_rw and
// init_state_dump // init_state_dump

View File

@ -447,7 +447,7 @@ mod tests {
#[test] #[test]
fn op_deposit_fields_post_canyon() { fn op_deposit_fields_post_canyon() {
// ensure_create2_deployer will fail if timestamp is set to less then 2 // ensure_create2_deployer will fail if timestamp is set to less than 2
let header = Header { let header = Header {
timestamp: 2, timestamp: 2,
number: 1, number: 1,

View File

@ -47,7 +47,7 @@ async fn can_sync() -> eyre::Result<()> {
.await?; .await?;
second_node.engine_api.canonical_stream.next().await.unwrap(); second_node.engine_api.canonical_stream.next().await.unwrap();
// Trigger backfil sync until block 80 // Trigger backfill sync until block 80
third_node third_node
.engine_api .engine_api
.update_forkchoice(canonical_chain[tip_index - 10], canonical_chain[tip_index - 10]) .update_forkchoice(canonical_chain[tip_index - 10], canonical_chain[tip_index - 10])

View File

@ -4,7 +4,7 @@ use alloy_eips::eip4895::Withdrawal;
use alloy_primitives::B256; use alloy_primitives::B256;
use alloy_rpc_types_engine::ExecutionPayload; use alloy_rpc_types_engine::ExecutionPayload;
/// Either an [`ExecutionPayload`] or a types that implements the [`PayloadAttributes`] trait. /// Either an [`ExecutionPayload`] or a type that implements the [`PayloadAttributes`] trait.
/// ///
/// This is a helper type to unify pre-validation of version specific fields of the engine API. /// This is a helper type to unify pre-validation of version specific fields of the engine API.
#[derive(Debug)] #[derive(Debug)]

View File

@ -26,7 +26,7 @@ mod tests {
struct Log { struct Log {
/// Contract that emitted this log. /// Contract that emitted this log.
address: Address, address: Address,
/// Topics of the log. The number of logs depend on what `LOG` opcode is used. /// Topics of the log. The number of logs depends on what `LOG` opcode is used.
topics: Vec<B256>, topics: Vec<B256>,
/// Arbitrary length data. /// Arbitrary length data.
data: Bytes, data: Bytes,