diff --git a/book/cli/node.md b/book/cli/node.md index 07da18fae..c97a9e34a 100644 --- a/book/cli/node.md +++ b/book/cli/node.md @@ -153,7 +153,7 @@ RPC: [default: 100] --rpc-max-subscriptions-per-connection - Set the the maximum concurrent subscriptions per connection + Set the maximum concurrent subscriptions per connection [default: 1024] diff --git a/crates/blockchain-tree/src/block_indices.rs b/crates/blockchain-tree/src/block_indices.rs index b4c8e7548..7097f9747 100644 --- a/crates/blockchain-tree/src/block_indices.rs +++ b/crates/blockchain-tree/src/block_indices.rs @@ -169,7 +169,7 @@ impl BlockIndices { loop { let Some(old_block_value) = old_hash else { - // end of old_hashes canonical chain. New chain has more block then old chain. + // end of old_hashes canonical chain. New chain has more blocks than old chain. while let Some(new) = new_hash { // add new blocks to added list. added.push(new.into()); @@ -204,7 +204,7 @@ impl BlockIndices { old_hash = old_hashes.next(); } std::cmp::Ordering::Greater => { - // old chain has more past blocks that new chain + // old chain has more past blocks than new chain removed.push(old_block_value); old_hash = old_hashes.next() } @@ -221,7 +221,7 @@ impl BlockIndices { ) } - /// Remove chain from indices and return dependent chains that needs to be removed. + /// Remove chain from indices and return dependent chains that need to be removed. /// Does the cleaning of the tree and removing blocks from the chain. pub fn remove_chain(&mut self, chain: &Chain) -> BTreeSet { let mut lose_chains = BTreeSet::new(); @@ -316,7 +316,7 @@ impl BlockIndices { /// this is function that is going to remove N number of last canonical hashes. /// /// NOTE: This is not safe standalone, as it will not disconnect - /// blocks that depends on unwinded canonical chain. And should be + /// blocks that depend on unwinded canonical chain. And should be /// used when canonical chain is reinserted inside Tree. pub(crate) fn unwind_canonical_chain(&mut self, unwind_to: BlockNumber) { // this will remove all blocks numbers that are going to be replaced. @@ -383,7 +383,7 @@ impl BlockIndices { self.canonical_chain.tip() } - /// Canonical chain needed for execution of EVM. It should contains last 256 block hashes. + /// Canonical chain needed for execution of EVM. It should contain last 256 block hashes. #[inline] pub(crate) fn canonical_chain(&self) -> &CanonicalChain { &self.canonical_chain diff --git a/crates/blockchain-tree/src/chain.rs b/crates/blockchain-tree/src/chain.rs index 258976fde..c426e5b6c 100644 --- a/crates/blockchain-tree/src/chain.rs +++ b/crates/blockchain-tree/src/chain.rs @@ -47,7 +47,7 @@ impl DerefMut for AppendableChain { } impl AppendableChain { - /// Crate a new appendable chain from a given chain. + /// Create a new appendable chain from a given chain. pub fn new(chain: Chain) -> Self { Self { chain } } diff --git a/crates/blockchain-tree/src/config.rs b/crates/blockchain-tree/src/config.rs index 3c56acc56..019d12340 100644 --- a/crates/blockchain-tree/src/config.rs +++ b/crates/blockchain-tree/src/config.rs @@ -42,7 +42,7 @@ impl BlockchainTreeConfig { max_unconnected_blocks: usize, ) -> Self { if max_reorg_depth > max_blocks_in_chain { - panic!("Side chain size should be more then finalization window"); + panic!("Side chain size should be more than finalization window"); } Self { max_blocks_in_chain, diff --git a/crates/blockchain-tree/src/shareable.rs b/crates/blockchain-tree/src/shareable.rs index 6b9c6380b..ba766b236 100644 --- a/crates/blockchain-tree/src/shareable.rs +++ b/crates/blockchain-tree/src/shareable.rs @@ -32,7 +32,7 @@ pub struct ShareableBlockchainTree ShareableBlockchainTree { - /// Create a new sharable database. + /// Create a new shareable database. pub fn new(tree: BlockchainTree) -> Self { Self { tree: Arc::new(RwLock::new(tree)) } } diff --git a/crates/primitives/src/transaction/eip4844.rs b/crates/primitives/src/transaction/eip4844.rs index 1278e75e3..27c5c1d36 100644 --- a/crates/primitives/src/transaction/eip4844.rs +++ b/crates/primitives/src/transaction/eip4844.rs @@ -108,7 +108,7 @@ impl TxEip4844 { /// Verifies that the given blob data, commitments, and proofs are all valid for this /// transaction. /// - /// Takes as input the [KzgSettings], which should contain the the parameters derived from the + /// Takes as input the [KzgSettings], which should contain the parameters derived from the /// KZG trusted setup. /// /// This ensures that the blob transaction payload has the same number of blob data elements, diff --git a/crates/revm/src/eth_dao_fork.rs b/crates/revm/src/eth_dao_fork.rs index 785dae4b8..67e26cbd0 100644 --- a/crates/revm/src/eth_dao_fork.rs +++ b/crates/revm/src/eth_dao_fork.rs @@ -5,7 +5,7 @@ use reth_primitives::{hex_literal::hex, H160}; /// Dao hardfork beneficiary that received ether from accounts from DAO and DAO creator children. pub static DAO_HARDFORK_BENEFICIARY: H160 = H160(hex!("bf4ed7b27f1d666546e30d74d50d173d20bca754")); -/// DAO hardfork account that ether was taken and added to beneficiry +/// DAO hardfork account that ether was taken and added to beneficiary pub static DAO_HARDKFORK_ACCOUNTS: [H160; 116] = [ H160(hex!("d4fe7bc31cedb7bfb8a345f31e668033056b2728")), H160(hex!("b3fb0e5aba0e20e5c49d252dfd30e102b171a425")), diff --git a/crates/revm/src/lib.rs b/crates/revm/src/lib.rs index 2db43b57a..7dae2a87e 100644 --- a/crates/revm/src/lib.rs +++ b/crates/revm/src/lib.rs @@ -36,5 +36,5 @@ pub use reth_revm_primitives::*; /// Re-export everything pub use revm; -/// Etereum DAO hardfork state change data. +/// Ethereum DAO hardfork state change data. pub mod eth_dao_fork; diff --git a/crates/stages/src/stage.rs b/crates/stages/src/stage.rs index e369af060..95e397cbe 100644 --- a/crates/stages/src/stage.rs +++ b/crates/stages/src/stage.rs @@ -71,7 +71,7 @@ impl ExecInput { } /// Return the next block range determined the number of transactions within it. - /// This function walks the the block indices until either the end of the range is reached or + /// This function walks the block indices until either the end of the range is reached or /// the number of transactions exceeds the threshold. pub fn next_block_range_with_transaction_threshold( &self, diff --git a/crates/transaction-pool/src/pool/mod.rs b/crates/transaction-pool/src/pool/mod.rs index aadca293a..95b2c44df 100644 --- a/crates/transaction-pool/src/pool/mod.rs +++ b/crates/transaction-pool/src/pool/mod.rs @@ -873,7 +873,7 @@ impl AddedTransaction { } } - /// Returns the the replaced transaction if there was one + /// Returns the replaced transaction if there was one pub(crate) fn replaced(&self) -> Option<&Arc>> { match self { AddedTransaction::Pending(tx) => tx.replaced.as_ref(),