Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2582,8 +2582,8 @@ pub enum BlockStatus {

/// How a payload was inserted if it was valid.
///
/// If the payload was valid, but has already been seen, [`InsertPayloadOk::AlreadySeen(_)`] is
/// returned, otherwise [`InsertPayloadOk::Inserted(_)`] is returned.
/// If the payload was valid, but has already been seen, [`InsertPayloadOk::AlreadySeen`] is
/// returned, otherwise [`InsertPayloadOk::Inserted`] is returned.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum InsertPayloadOk {
/// The payload was valid, but we have already seen it.
Expand Down
2 changes: 1 addition & 1 deletion crates/net/downloaders/src/bodies/bodies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ where
/// Max requests to handle at the same time
///
/// This depends on the number of active peers but will always be
/// [`min_concurrent_requests`..`max_concurrent_requests`]
/// `min_concurrent_requests..max_concurrent_requests`
#[inline]
fn concurrent_request_limit(&self) -> usize {
let num_peers = self.client.num_connected_peers();
Expand Down
2 changes: 1 addition & 1 deletion crates/net/downloaders/src/headers/reverse_headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ where
/// Max requests to handle at the same time
///
/// This depends on the number of active peers but will always be
/// [`min_concurrent_requests`..`max_concurrent_requests`]
/// `min_concurrent_requests..max_concurrent_requests`
#[inline]
fn concurrent_request_limit(&self) -> usize {
let num_peers = self.client.num_connected_peers();
Expand Down
6 changes: 3 additions & 3 deletions crates/net/network/src/test_utils/testnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,9 +788,9 @@ impl NetworkEventStream {
peers
}

/// Ensures that the first two events are a [`NetworkEvent::Peer(PeerEvent::PeerAdded`] and
/// [`NetworkEvent::ActivePeerSession`], returning the [`PeerId`] of the established
/// session.
/// Ensures that the first two events are a [`NetworkEvent::Peer`] and
/// [`PeerEvent::PeerAdded`][`NetworkEvent::ActivePeerSession`], returning the [`PeerId`] of the
/// established session.
pub async fn peer_added_and_established(&mut self) -> Option<PeerId> {
let peer_id = match self.inner.next().await {
Some(NetworkEvent::Peer(PeerEvent::PeerAdded(peer_id))) => peer_id,
Expand Down
4 changes: 2 additions & 2 deletions crates/node/core/src/args/pruning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ pub struct PruningArgs {
pub receipts_before: Option<BlockNumber>,
// Receipts Log Filter
/// Configure receipts log filter. Format:
/// <`address`>:<`prune_mode`>[,<`address`>:<`prune_mode`>...] Where <`prune_mode`> can be
/// 'full', 'distance:<`blocks`>', or 'before:<`block_number`>'
/// <`address`>:<`prune_mode`>... where <`prune_mode`> can be 'full', 'distance:<`blocks`>', or
/// 'before:<`block_number`>'
#[arg(long = "prune.receiptslogfilter", value_name = "FILTER_CONFIG", conflicts_with_all = &["receipts_full", "receipts_pre_merge", "receipts_distance", "receipts_before"], value_parser = parse_receipts_log_filter)]
pub receipts_log_filter: Option<ReceiptsLogPruneConfig>,

Expand Down
6 changes: 3 additions & 3 deletions crates/prune/types/src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ impl PruneModes {
/// left in database after the pruning.
///
/// 1. For [`PruneMode::Full`], it fails if `MIN_BLOCKS > 0`.
/// 2. For [`PruneMode::Distance(distance`)], it fails if `distance < MIN_BLOCKS + 1`. `+ 1` is
/// needed because `PruneMode::Distance(0)` means that we leave zero blocks from the latest,
/// meaning we have one block in the database.
/// 2. For [`PruneMode::Distance`], it fails if `distance < MIN_BLOCKS + 1`. `+ 1` is needed because
/// `PruneMode::Distance(0)` means that we leave zero blocks from the latest, meaning we have one
/// block in the database.
#[cfg(any(test, feature = "serde"))]
fn deserialize_opt_prune_mode_with_min_blocks<
'de,
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc/rpc-e2e-tests/src/rpc_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct RpcTestCase {
/// Action that runs RPC compatibility tests from execution-apis test data
#[derive(Debug)]
pub struct RunRpcCompatTests {
/// RPC methods to test (e.g., ["`eth_getLogs`"])
/// RPC methods to test (e.g. `eth_getLogs`)
pub methods: Vec<String>,
/// Path to the execution-apis tests directory
pub test_data_path: String,
Expand Down
3 changes: 1 addition & 2 deletions crates/scroll/alloy/hardforks/src/hardfork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ impl ScrollHardfork {
(Self::DarwinV2, ForkCondition::Timestamp(1725264000)),
(Self::Euclid, ForkCondition::Timestamp(1744815600)),
(Self::EuclidV2, ForkCondition::Timestamp(1745305200)),
// TODO: update
(Self::Feynman, ForkCondition::Timestamp(6000000000)),
(Self::Feynman, ForkCondition::Timestamp(1755576000)),
]
}

Expand Down
6 changes: 3 additions & 3 deletions crates/scroll/chainspec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,11 +516,11 @@ mod tests {
),
(
Head { number: 7096836, timestamp: 1745305200, ..Default::default() },
ForkId { hash: ForkHash([0x0e, 0xcf, 0xb2, 0x31]), next: 6000000000 },
ForkId { hash: ForkHash([0x0e, 0xcf, 0xb2, 0x31]), next: 1755576000 },
),
(
Head { number: 7096836, timestamp: 6000000000, ..Default::default() },
ForkId { hash: ForkHash([0x64, 0xb1, 0x52, 0x56]), next: 0 },
Head { number: 7096836, timestamp: 1755576000, ..Default::default() },
ForkId { hash: ForkHash([0x38, 0x0f, 0x78, 0x5d]), next: 0 },
),
],
);
Expand Down
2 changes: 1 addition & 1 deletion crates/scroll/evm/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ mod tests {
const CURIE_BLOCK_NUMBER: u64 = 7096837;
const EUCLID_V2_BLOCK_NUMBER: u64 = 14907015;
const EUCLID_V2_BLOCK_TIMESTAMP: u64 = 1745305200;
const FEYNMAN_BLOCK_TIMESTAMP: u64 = u64::MAX;
const FEYNMAN_BLOCK_TIMESTAMP: u64 = 1755576000;

const L1_BASE_FEE_SLOT: U256 = U256::from_limbs([1, 0, 0, 0]);
const OVER_HEAD_SLOT: U256 = U256::from_limbs([2, 0, 0, 0]);
Expand Down
3 changes: 1 addition & 2 deletions crates/scroll/hardforks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ pub static SCROLL_MAINNET_HARDFORKS: LazyLock<ChainHardforks> = LazyLock::new(||
(ScrollHardfork::DarwinV2.boxed(), ForkCondition::Timestamp(1725264000)),
(ScrollHardfork::Euclid.boxed(), ForkCondition::Timestamp(1744815600)),
(ScrollHardfork::EuclidV2.boxed(), ForkCondition::Timestamp(1745305200)),
// TODO: update
(ScrollHardfork::Feynman.boxed(), ForkCondition::Timestamp(6000000000)),
(ScrollHardfork::Feynman.boxed(), ForkCondition::Timestamp(1755576000)),
])
});

Expand Down
2 changes: 1 addition & 1 deletion crates/storage/db/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! MDBX implementation for reth's database abstraction layer.
//!
//! This crate is an implementation of [`reth-db-api`] for MDBX, as well as a few other common
//! This crate is an implementation of `reth-db-api` for MDBX, as well as a few other common
//! database types.
//!
//! # Overview
Expand Down
2 changes: 1 addition & 1 deletion crates/trie/db/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! An integration of [`reth-trie`] with [`reth-db`].
//! An integration of `reth-trie` with `reth-db`.

#![cfg_attr(not(test), warn(unused_crate_dependencies))]

Expand Down
2 changes: 1 addition & 1 deletion docs/vocs/docs/pages/cli/reth/node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ Pruning:
Prune receipts before the specified block number. The specified block number is not pruned

--prune.receiptslogfilter <FILTER_CONFIG>
Configure receipts log filter. Format: <`address`>:<`prune_mode`>[,<`address`>:<`prune_mode`>...] Where <`prune_mode`> can be 'full', 'distance:<`blocks`>', or 'before:<`block_number`>'
Configure receipts log filter. Format: <`address`>:<`prune_mode`>... where <`prune_mode`> can be 'full', 'distance:<`blocks`>', or 'before:<`block_number`>'

--prune.accounthistory.full
Prunes all account history
Expand Down