mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: correct typo docs (#13557)
Co-authored-by: futreall <ancur09@hotmail.com>
This commit is contained in:
@ -45,7 +45,7 @@ impl From<DatabaseError> for BeaconConsensusEngineError {
|
|||||||
|
|
||||||
/// Represents error cases for an applied forkchoice update.
|
/// Represents error cases for an applied forkchoice update.
|
||||||
///
|
///
|
||||||
/// This represents all possible error cases, that must be returned as JSON RCP errors back to the
|
/// This represents all possible error cases, that must be returned as JSON RPC errors back to the
|
||||||
/// beacon node.
|
/// beacon node.
|
||||||
#[derive(Debug, thiserror::Error)]
|
#[derive(Debug, thiserror::Error)]
|
||||||
pub enum BeaconForkChoiceUpdateError {
|
pub enum BeaconForkChoiceUpdateError {
|
||||||
|
|||||||
@ -47,7 +47,7 @@
|
|||||||
//! ## Handling consensus messages
|
//! ## Handling consensus messages
|
||||||
//!
|
//!
|
||||||
//! Consensus message handling is performed by three main components:
|
//! Consensus message handling is performed by three main components:
|
||||||
//! 1. The [`EngineHandler`](engine::EngineHandler), which takes incoming consensus mesesages and
|
//! 1. The [`EngineHandler`](engine::EngineHandler), which takes incoming consensus messages and
|
||||||
//! manages any requested backfill or download work.
|
//! manages any requested backfill or download work.
|
||||||
//! 2. The [`EngineApiRequestHandler`](engine::EngineApiRequestHandler), which processes messages
|
//! 2. The [`EngineApiRequestHandler`](engine::EngineApiRequestHandler), which processes messages
|
||||||
//! from the [`EngineHandler`](engine::EngineHandler) and delegates them to the
|
//! from the [`EngineHandler`](engine::EngineHandler) and delegates them to the
|
||||||
|
|||||||
@ -7,7 +7,7 @@ use alloy_primitives::{address, Address};
|
|||||||
pub static DAO_HARDFORK_BENEFICIARY: Address = address!("bf4ed7b27f1d666546e30d74d50d173d20bca754");
|
pub static DAO_HARDFORK_BENEFICIARY: Address = address!("bf4ed7b27f1d666546e30d74d50d173d20bca754");
|
||||||
|
|
||||||
/// DAO hardfork account that ether was taken and added to beneficiary
|
/// DAO hardfork account that ether was taken and added to beneficiary
|
||||||
pub static DAO_HARDKFORK_ACCOUNTS: [Address; 116] = [
|
pub static DAO_HARDFORK_ACCOUNTS: [Address; 116] = [
|
||||||
address!("d4fe7bc31cedb7bfb8a345f31e668033056b2728"),
|
address!("d4fe7bc31cedb7bfb8a345f31e668033056b2728"),
|
||||||
address!("b3fb0e5aba0e20e5c49d252dfd30e102b171a425"),
|
address!("b3fb0e5aba0e20e5c49d252dfd30e102b171a425"),
|
||||||
address!("2c19c7f9ae8b751e37aeb2d93a699722395ae18f"),
|
address!("2c19c7f9ae8b751e37aeb2d93a699722395ae18f"),
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
//! Ethereum block execution strategy.
|
//! Ethereum block execution strategy.
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
dao_fork::{DAO_HARDFORK_BENEFICIARY, DAO_HARDKFORK_ACCOUNTS},
|
dao_fork::{DAO_HARDFORK_ACCOUNTS, DAO_HARDFORK_BENEFICIARY},
|
||||||
EthEvmConfig,
|
EthEvmConfig,
|
||||||
};
|
};
|
||||||
use alloc::{boxed::Box, sync::Arc, vec::Vec};
|
use alloc::{boxed::Box, sync::Arc, vec::Vec};
|
||||||
@ -255,7 +255,7 @@ where
|
|||||||
// drain balances from hardcoded addresses.
|
// drain balances from hardcoded addresses.
|
||||||
let drained_balance: u128 = self
|
let drained_balance: u128 = self
|
||||||
.state
|
.state
|
||||||
.drain_balances(DAO_HARDKFORK_ACCOUNTS)
|
.drain_balances(DAO_HARDFORK_ACCOUNTS)
|
||||||
.map_err(|_| BlockValidationError::IncrementBalanceFailed)?
|
.map_err(|_| BlockValidationError::IncrementBalanceFailed)?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.sum();
|
.sum();
|
||||||
|
|||||||
Reference in New Issue
Block a user