mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: Move consensus trait to standalone crate (#7757)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -19,6 +19,7 @@ reth-provider.workspace = true
|
||||
reth-stages-api.workspace = true
|
||||
reth-trie = { workspace = true, features = ["metrics"] }
|
||||
reth-trie-parallel = { workspace = true, features = ["parallel"] }
|
||||
reth-consensus.workspace = true
|
||||
|
||||
# common
|
||||
parking_lot.workspace = true
|
||||
|
||||
@ -5,13 +5,13 @@ use crate::{
|
||||
state::{BlockChainId, TreeState},
|
||||
AppendableChain, BlockIndices, BlockchainTreeConfig, BundleStateData, TreeExternals,
|
||||
};
|
||||
use reth_consensus::{Consensus, ConsensusError};
|
||||
use reth_db::database::Database;
|
||||
use reth_interfaces::{
|
||||
blockchain_tree::{
|
||||
error::{BlockchainTreeError, CanonicalError, InsertBlockError, InsertBlockErrorKind},
|
||||
BlockAttachment, BlockStatus, BlockValidationKind, CanonicalOutcome, InsertPayloadOk,
|
||||
},
|
||||
consensus::{Consensus, ConsensusError},
|
||||
executor::{BlockExecutionError, BlockValidationError},
|
||||
provider::RootMismatch,
|
||||
RethResult,
|
||||
|
||||
@ -5,13 +5,13 @@
|
||||
|
||||
use super::externals::TreeExternals;
|
||||
use crate::BundleStateDataRef;
|
||||
use reth_consensus::{Consensus, ConsensusError};
|
||||
use reth_db::database::Database;
|
||||
use reth_interfaces::{
|
||||
blockchain_tree::{
|
||||
error::{BlockchainTreeError, InsertBlockErrorKind},
|
||||
BlockAttachment, BlockValidationKind,
|
||||
},
|
||||
consensus::{Consensus, ConsensusError},
|
||||
RethResult,
|
||||
};
|
||||
use reth_primitives::{
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
//! Blockchain tree externals.
|
||||
|
||||
use reth_consensus::Consensus;
|
||||
use reth_db::{
|
||||
cursor::DbCursorRO, database::Database, static_file::HeaderMask, tables, transaction::DbTx,
|
||||
};
|
||||
use reth_interfaces::{consensus::Consensus, RethResult};
|
||||
use reth_interfaces::RethResult;
|
||||
use reth_primitives::{BlockHash, BlockNumber, StaticFileSegment};
|
||||
use reth_provider::{ProviderFactory, StatsReader};
|
||||
use std::{collections::BTreeMap, sync::Arc};
|
||||
|
||||
Reference in New Issue
Block a user