mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(sdk): make Chain generic over data primitives (#12635)
This commit is contained in:
@ -13,8 +13,7 @@ use reth_evm::execute::BasicBlockExecutorProvider;
|
||||
use reth_evm_ethereum::execute::EthExecutionStrategyFactory;
|
||||
use reth_network::{NetworkHandle, PeersInfo};
|
||||
use reth_node_api::{
|
||||
AddOnsContext, ConfigureEvm, EngineValidator, FullNodeComponents, NodePrimitives,
|
||||
NodeTypesWithDB,
|
||||
AddOnsContext, ConfigureEvm, EngineValidator, FullNodeComponents, NodeTypesWithDB,
|
||||
};
|
||||
use reth_node_builder::{
|
||||
components::{
|
||||
@ -26,7 +25,7 @@ use reth_node_builder::{
|
||||
BuilderContext, Node, NodeAdapter, NodeComponentsBuilder, PayloadBuilderConfig, PayloadTypes,
|
||||
};
|
||||
use reth_payload_builder::{PayloadBuilderHandle, PayloadBuilderService};
|
||||
use reth_primitives::{Block, Receipt, TransactionSigned, TxType};
|
||||
use reth_primitives::EthPrimitives;
|
||||
use reth_provider::CanonStateSubscriptions;
|
||||
use reth_rpc::EthApi;
|
||||
use reth_tracing::tracing::{debug, info};
|
||||
@ -38,17 +37,6 @@ use reth_trie_db::MerklePatriciaTrie;
|
||||
|
||||
use crate::{EthEngineTypes, EthEvmConfig};
|
||||
|
||||
/// Ethereum primitive types.
|
||||
#[derive(Debug, Default, Clone)]
|
||||
pub struct EthPrimitives;
|
||||
|
||||
impl NodePrimitives for EthPrimitives {
|
||||
type Block = Block;
|
||||
type SignedTx = TransactionSigned;
|
||||
type TxType = TxType;
|
||||
type Receipt = Receipt;
|
||||
}
|
||||
|
||||
/// Type configuration for a regular Ethereum node.
|
||||
#[derive(Debug, Default, Clone, Copy)]
|
||||
#[non_exhaustive]
|
||||
|
||||
Reference in New Issue
Block a user