From 2afd1098166e4947820efd7766ab04c4435070fc Mon Sep 17 00:00:00 2001 From: cakevm Date: Thu, 17 Jul 2025 15:19:19 +0200 Subject: [PATCH] chore: correct spelling errors (#17462) --- crates/engine/tree/src/tree/payload_processor/mod.rs | 2 +- crates/engine/tree/src/tree/payload_processor/sparse_trie.rs | 2 +- .../testdata/rpc-compat/eth_getLogs/topic-exact-match.io | 2 +- crates/trie/sparse-parallel/src/lower.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/engine/tree/src/tree/payload_processor/mod.rs b/crates/engine/tree/src/tree/payload_processor/mod.rs index 3210780ec6..2078df8088 100644 --- a/crates/engine/tree/src/tree/payload_processor/mod.rs +++ b/crates/engine/tree/src/tree/payload_processor/mod.rs @@ -397,7 +397,7 @@ where /// Helper method that handles sparse trie task spawning. /// - /// If we have a stored trie, we will re-use it for spawning. If we do not have a stored trie, + /// If we have a stored trie, we will reuse it for spawning. If we do not have a stored trie, /// we will create a new trie based on the configured trie type (parallel or serial). fn spawn_sparse_trie_task( &self, diff --git a/crates/engine/tree/src/tree/payload_processor/sparse_trie.rs b/crates/engine/tree/src/tree/payload_processor/sparse_trie.rs index 929e4d1de3..4242752867 100644 --- a/crates/engine/tree/src/tree/payload_processor/sparse_trie.rs +++ b/crates/engine/tree/src/tree/payload_processor/sparse_trie.rs @@ -112,7 +112,7 @@ where /// # Returns /// /// - State root computation outcome. - /// - Accounts trie that needs to be cleared and re-used to avoid reallocations. + /// - Accounts trie that needs to be cleared and reused to avoid reallocations. pub(super) fn run( &mut self, ) -> (Result, SparseTrie) { diff --git a/crates/rpc/rpc-e2e-tests/testdata/rpc-compat/eth_getLogs/topic-exact-match.io b/crates/rpc/rpc-e2e-tests/testdata/rpc-compat/eth_getLogs/topic-exact-match.io index 4795cc4116..30366e8005 100644 --- a/crates/rpc/rpc-e2e-tests/testdata/rpc-compat/eth_getLogs/topic-exact-match.io +++ b/crates/rpc/rpc-e2e-tests/testdata/rpc-compat/eth_getLogs/topic-exact-match.io @@ -1,3 +1,3 @@ -// queries for logs with two topics, with both topics set explictly +// queries for logs with two topics, with both topics set explicitly >> {"jsonrpc":"2.0","id":1,"method":"eth_getLogs","params":[{"address":null,"fromBlock":"0x3","toBlock":"0x6","topics":[["0x00000000000000000000000000000000000000000000000000000000656d6974"],["0x4238ace0bf7e66fd40fea01bdf43f4f30423f48432efd0da3af5fcb17a977fd4"]]}]} << {"jsonrpc":"2.0","id":1,"result":[{"address":"0x7dcd17433742f4c0ca53122ab541d0ba67fc27df","topics":["0x00000000000000000000000000000000000000000000000000000000656d6974","0x4238ace0bf7e66fd40fea01bdf43f4f30423f48432efd0da3af5fcb17a977fd4"],"data":"0x0000000000000000000000000000000000000000000000000000000000000001","blockNumber":"0x4","transactionHash":"0xf047c5133c96c405a79d01038b4ccf8208c03e296dd9f6bea083727c9513f805","transactionIndex":"0x0","blockHash":"0x94540b21748e45497c41518ed68b2a0c16d728e917b665ae50d51f6895242e53","logIndex":"0x0","removed":false}]} diff --git a/crates/trie/sparse-parallel/src/lower.rs b/crates/trie/sparse-parallel/src/lower.rs index 0a4356426e..449c3a7b29 100644 --- a/crates/trie/sparse-parallel/src/lower.rs +++ b/crates/trie/sparse-parallel/src/lower.rs @@ -5,7 +5,7 @@ use reth_trie_common::Nibbles; /// /// When a [`crate::ParallelSparseTrie`] is initialized/cleared then its `LowerSparseSubtrie`s are /// all blinded, meaning they have no nodes. A blinded `LowerSparseSubtrie` may hold onto a cleared -/// [`SparseSubtrie`] in order to re-use allocations. +/// [`SparseSubtrie`] in order to reuse allocations. #[derive(Clone, Debug, Eq, PartialEq)] pub(crate) enum LowerSparseSubtrie { Blind(Option>),