mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: correct the comments (#14339)
This commit is contained in:
@ -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>(
|
||||
client: Client,
|
||||
id: BlockHashOrNumber,
|
||||
@ -68,7 +68,7 @@ where
|
||||
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>(
|
||||
client: Client,
|
||||
header: SealedHeader<B::Header>,
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
//! - `min-error-logs`: Disables all logs below `error` 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
|
||||
//! calls to the logging component is made.
|
||||
//! calls to the logging component are made.
|
||||
//! - `min-debug-logs`: Disables all logs below `debug` level.
|
||||
//! - `min-trace-logs`: Disables all logs below `trace` level.
|
||||
#![doc(
|
||||
|
||||
@ -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
|
||||
// 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
|
||||
// init_state_dump
|
||||
|
||||
@ -447,7 +447,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
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 {
|
||||
timestamp: 2,
|
||||
number: 1,
|
||||
|
||||
@ -47,7 +47,7 @@ async fn can_sync() -> eyre::Result<()> {
|
||||
.await?;
|
||||
second_node.engine_api.canonical_stream.next().await.unwrap();
|
||||
|
||||
// Trigger backfil sync until block 80
|
||||
// Trigger backfill sync until block 80
|
||||
third_node
|
||||
.engine_api
|
||||
.update_forkchoice(canonical_chain[tip_index - 10], canonical_chain[tip_index - 10])
|
||||
|
||||
@ -4,7 +4,7 @@ use alloy_eips::eip4895::Withdrawal;
|
||||
use alloy_primitives::B256;
|
||||
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.
|
||||
#[derive(Debug)]
|
||||
|
||||
@ -26,7 +26,7 @@ mod tests {
|
||||
struct Log {
|
||||
/// Contract that emitted this log.
|
||||
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>,
|
||||
/// Arbitrary length data.
|
||||
data: Bytes,
|
||||
|
||||
Reference in New Issue
Block a user