mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: clippy happy (#8362)
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
This commit is contained in:
@ -78,10 +78,10 @@ impl<DB: Database + 'static> PruneHook<DB> {
|
||||
|
||||
/// This will try to spawn the pruner if it is idle:
|
||||
/// 1. Check if pruning is needed through [Pruner::is_pruning_needed].
|
||||
/// 2.
|
||||
/// 1. If pruning is needed, pass tip block number to the [Pruner::run] and spawn it in a
|
||||
/// separate task. Set pruner state to [PrunerState::Running].
|
||||
/// 2. If pruning is not needed, set pruner state back to [PrunerState::Idle].
|
||||
///
|
||||
/// 2.1. If pruning is needed, pass tip block number to the [Pruner::run] and spawn it in a
|
||||
/// separate task. Set pruner state to [PrunerState::Running].
|
||||
/// 2.2. If pruning is not needed, set pruner state back to [PrunerState::Idle].
|
||||
///
|
||||
/// If pruner is already running, do nothing.
|
||||
fn try_spawn_pruner(&mut self, tip_block_number: BlockNumber) -> Option<EngineHookEvent> {
|
||||
|
||||
@ -71,13 +71,13 @@ impl<DB: Database + 'static> StaticFileHook<DB> {
|
||||
/// 1. Check if producing static files is needed through
|
||||
/// [StaticFileProducer::get_static_file_targets](reth_static_file::StaticFileProducerInner::get_static_file_targets)
|
||||
/// and then [StaticFileTargets::any](reth_static_file::StaticFileTargets::any).
|
||||
/// 2.
|
||||
/// 1. If producing static files is needed, pass static file request to the
|
||||
/// [StaticFileProducer::run](reth_static_file::StaticFileProducerInner::run) and spawn
|
||||
/// it in a separate task. Set static file producer state to
|
||||
/// [StaticFileProducerState::Running].
|
||||
/// 2. If producing static files is not needed, set static file producer state back to
|
||||
/// [StaticFileProducerState::Idle].
|
||||
///
|
||||
/// 2.1. If producing static files is needed, pass static file request to the
|
||||
/// [StaticFileProducer::run](reth_static_file::StaticFileProducerInner::run) and
|
||||
/// spawn it in a separate task. Set static file producer state to
|
||||
/// [StaticFileProducerState::Running].
|
||||
/// 2.2. If producing static files is not needed, set static file producer state back to
|
||||
/// [StaticFileProducerState::Idle].
|
||||
///
|
||||
/// If static_file_producer is already running, do nothing.
|
||||
fn try_spawn_static_file_producer(
|
||||
|
||||
@ -703,13 +703,13 @@ where
|
||||
/// If validation fails, the response MUST contain the latest valid hash:
|
||||
///
|
||||
/// - The block hash of the ancestor of the invalid payload satisfying the following two
|
||||
/// conditions:
|
||||
/// conditions:
|
||||
/// - It is fully validated and deemed VALID
|
||||
/// - Any other ancestor of the invalid payload with a higher blockNumber is INVALID
|
||||
/// - 0x0000000000000000000000000000000000000000000000000000000000000000 if the above
|
||||
/// conditions are satisfied by a PoW block.
|
||||
/// conditions are satisfied by a PoW block.
|
||||
/// - null if client software cannot determine the ancestor of the invalid payload satisfying
|
||||
/// the above conditions.
|
||||
/// the above conditions.
|
||||
fn latest_valid_hash_for_invalid_payload(
|
||||
&mut self,
|
||||
parent_hash: B256,
|
||||
@ -1103,8 +1103,8 @@ where
|
||||
/// - invalid extra data
|
||||
/// - invalid transactions
|
||||
/// - incorrect hash
|
||||
/// - the versioned hashes passed with the payload do not exactly match transaction
|
||||
/// versioned hashes
|
||||
/// - the versioned hashes passed with the payload do not exactly match transaction versioned
|
||||
/// hashes
|
||||
/// - the block does not contain blob transactions if it is pre-cancun
|
||||
///
|
||||
/// This validates the following engine API rule:
|
||||
|
||||
Reference in New Issue
Block a user