mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rename miner to payload builder (#2217)
This commit is contained in:
44
Cargo.lock
generated
44
Cargo.lock
generated
@ -4443,10 +4443,10 @@ dependencies = [
|
|||||||
"reth-downloaders",
|
"reth-downloaders",
|
||||||
"reth-executor",
|
"reth-executor",
|
||||||
"reth-interfaces",
|
"reth-interfaces",
|
||||||
"reth-miner",
|
|
||||||
"reth-net-nat",
|
"reth-net-nat",
|
||||||
"reth-network",
|
"reth-network",
|
||||||
"reth-network-api",
|
"reth-network-api",
|
||||||
|
"reth-payload-builder",
|
||||||
"reth-primitives",
|
"reth-primitives",
|
||||||
"reth-provider",
|
"reth-provider",
|
||||||
"reth-revm",
|
"reth-revm",
|
||||||
@ -4496,7 +4496,7 @@ dependencies = [
|
|||||||
"futures-core",
|
"futures-core",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
"reth-consensus-common",
|
"reth-consensus-common",
|
||||||
"reth-miner",
|
"reth-payload-builder",
|
||||||
"reth-primitives",
|
"reth-primitives",
|
||||||
"reth-provider",
|
"reth-provider",
|
||||||
"reth-revm",
|
"reth-revm",
|
||||||
@ -4520,7 +4520,7 @@ dependencies = [
|
|||||||
"reth-executor",
|
"reth-executor",
|
||||||
"reth-interfaces",
|
"reth-interfaces",
|
||||||
"reth-metrics-derive",
|
"reth-metrics-derive",
|
||||||
"reth-miner",
|
"reth-payload-builder",
|
||||||
"reth-primitives",
|
"reth-primitives",
|
||||||
"reth-provider",
|
"reth-provider",
|
||||||
"reth-rpc-types",
|
"reth-rpc-types",
|
||||||
@ -4852,25 +4852,6 @@ dependencies = [
|
|||||||
"trybuild",
|
"trybuild",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "reth-miner"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"futures-core",
|
|
||||||
"futures-util",
|
|
||||||
"parking_lot 0.12.1",
|
|
||||||
"reth-interfaces",
|
|
||||||
"reth-primitives",
|
|
||||||
"reth-rlp",
|
|
||||||
"reth-rpc-types",
|
|
||||||
"revm-primitives",
|
|
||||||
"sha2 0.10.6",
|
|
||||||
"thiserror",
|
|
||||||
"tokio",
|
|
||||||
"tokio-stream",
|
|
||||||
"tracing",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "reth-net-common"
|
name = "reth-net-common"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
@ -4957,6 +4938,25 @@ dependencies = [
|
|||||||
"tokio",
|
"tokio",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "reth-payload-builder"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"futures-core",
|
||||||
|
"futures-util",
|
||||||
|
"parking_lot 0.12.1",
|
||||||
|
"reth-interfaces",
|
||||||
|
"reth-primitives",
|
||||||
|
"reth-rlp",
|
||||||
|
"reth-rpc-types",
|
||||||
|
"revm-primitives",
|
||||||
|
"sha2 0.10.6",
|
||||||
|
"thiserror",
|
||||||
|
"tokio",
|
||||||
|
"tokio-stream",
|
||||||
|
"tracing",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "reth-primitives"
|
name = "reth-primitives"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|||||||
@ -6,7 +6,7 @@ members = [
|
|||||||
"crates/consensus/common",
|
"crates/consensus/common",
|
||||||
"crates/executor",
|
"crates/executor",
|
||||||
"crates/interfaces",
|
"crates/interfaces",
|
||||||
"crates/miner",
|
"crates/payload/builder",
|
||||||
"crates/metrics/metrics-derive",
|
"crates/metrics/metrics-derive",
|
||||||
"crates/metrics/common",
|
"crates/metrics/common",
|
||||||
"crates/net/common",
|
"crates/net/common",
|
||||||
|
|||||||
@ -31,7 +31,7 @@ reth-downloaders = { path = "../../crates/net/downloaders", features = ["test-ut
|
|||||||
reth-tracing = { path = "../../crates/tracing" }
|
reth-tracing = { path = "../../crates/tracing" }
|
||||||
reth-tasks = { path = "../../crates/tasks" }
|
reth-tasks = { path = "../../crates/tasks" }
|
||||||
reth-net-nat = { path = "../../crates/net/nat" }
|
reth-net-nat = { path = "../../crates/net/nat" }
|
||||||
reth-miner = { path = "../../crates/miner" }
|
reth-payload-builder = { path = "../../crates/payload/builder" }
|
||||||
reth-discv4 = { path = "../../crates/net/discv4" }
|
reth-discv4 = { path = "../../crates/net/discv4" }
|
||||||
|
|
||||||
# crypto
|
# crypto
|
||||||
|
|||||||
@ -36,9 +36,9 @@ use reth_interfaces::{
|
|||||||
},
|
},
|
||||||
sync::SyncStateUpdater,
|
sync::SyncStateUpdater,
|
||||||
};
|
};
|
||||||
use reth_miner::TestPayloadStore;
|
|
||||||
use reth_network::{error::NetworkError, NetworkConfig, NetworkHandle, NetworkManager};
|
use reth_network::{error::NetworkError, NetworkConfig, NetworkHandle, NetworkManager};
|
||||||
use reth_network_api::NetworkInfo;
|
use reth_network_api::NetworkInfo;
|
||||||
|
use reth_payload_builder::TestPayloadStore;
|
||||||
use reth_primitives::{BlockHashOrNumber, Chain, ChainSpec, Head, Header, SealedHeader, H256};
|
use reth_primitives::{BlockHashOrNumber, Chain, ChainSpec, Head, Header, SealedHeader, H256};
|
||||||
use reth_provider::{BlockProvider, HeaderProvider, ShareableDatabase};
|
use reth_provider::{BlockProvider, HeaderProvider, ShareableDatabase};
|
||||||
use reth_revm::Factory;
|
use reth_revm::Factory;
|
||||||
|
|||||||
@ -15,7 +15,7 @@ reth-stages = { path = "../../stages" }
|
|||||||
reth-db = { path = "../../storage/db" }
|
reth-db = { path = "../../storage/db" }
|
||||||
reth-rpc-types = { path = "../../rpc/rpc-types" }
|
reth-rpc-types = { path = "../../rpc/rpc-types" }
|
||||||
reth-tasks = { path = "../../tasks" }
|
reth-tasks = { path = "../../tasks" }
|
||||||
reth-miner = { path = "../../miner" }
|
reth-payload-builder = { path = "../../payload/builder" }
|
||||||
reth-metrics-derive = { path = "../../metrics/metrics-derive" }
|
reth-metrics-derive = { path = "../../metrics/metrics-derive" }
|
||||||
|
|
||||||
# async
|
# async
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
use reth_miner::error::PayloadBuilderError;
|
use reth_payload_builder::error::PayloadBuilderError;
|
||||||
use reth_rpc_types::engine::{EngineRpcError, PayloadError};
|
use reth_rpc_types::engine::{EngineRpcError, PayloadError};
|
||||||
use reth_stages::PipelineError;
|
use reth_stages::PipelineError;
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|||||||
@ -9,7 +9,7 @@ use reth_interfaces::{
|
|||||||
Error,
|
Error,
|
||||||
};
|
};
|
||||||
use reth_metrics_derive::Metrics;
|
use reth_metrics_derive::Metrics;
|
||||||
use reth_miner::PayloadStore;
|
use reth_payload_builder::PayloadStore;
|
||||||
use reth_primitives::{BlockNumber, Header, SealedBlock, H256};
|
use reth_primitives::{BlockNumber, Header, SealedBlock, H256};
|
||||||
use reth_rpc_types::engine::{
|
use reth_rpc_types::engine::{
|
||||||
EngineRpcError, ExecutionPayload, ExecutionPayloadEnvelope, ForkchoiceUpdated,
|
EngineRpcError, ExecutionPayload, ExecutionPayloadEnvelope, ForkchoiceUpdated,
|
||||||
@ -602,7 +602,7 @@ mod tests {
|
|||||||
test_utils::TestExecutorFactory,
|
test_utils::TestExecutorFactory,
|
||||||
};
|
};
|
||||||
use reth_interfaces::{sync::NoopSyncStateUpdate, test_utils::TestConsensus};
|
use reth_interfaces::{sync::NoopSyncStateUpdate, test_utils::TestConsensus};
|
||||||
use reth_miner::TestPayloadStore;
|
use reth_payload_builder::TestPayloadStore;
|
||||||
use reth_primitives::{ChainSpec, ChainSpecBuilder, SealedBlockWithSenders, H256, MAINNET};
|
use reth_primitives::{ChainSpec, ChainSpecBuilder, SealedBlockWithSenders, H256, MAINNET};
|
||||||
use reth_provider::Transaction;
|
use reth_provider::Transaction;
|
||||||
use reth_stages::{test_utils::TestStages, ExecOutput, PipelineError, StageError};
|
use reth_stages::{test_utils::TestStages, ExecOutput, PipelineError, StageError};
|
||||||
|
|||||||
@ -15,7 +15,7 @@ reth-revm = { path = "../../revm" }
|
|||||||
reth-transaction-pool = { path = "../../transaction-pool" }
|
reth-transaction-pool = { path = "../../transaction-pool" }
|
||||||
reth-rlp = { path = "../../rlp" }
|
reth-rlp = { path = "../../rlp" }
|
||||||
reth-provider = { path = "../../storage/provider" }
|
reth-provider = { path = "../../storage/provider" }
|
||||||
reth-miner = { path = "../../miner" }
|
reth-payload-builder = { path = "../builder" }
|
||||||
reth-tasks = { path = "../../tasks" }
|
reth-tasks = { path = "../../tasks" }
|
||||||
|
|
||||||
## ethereum
|
## ethereum
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
use futures_core::{ready, Stream};
|
use futures_core::{ready, Stream};
|
||||||
use futures_util::FutureExt;
|
use futures_util::FutureExt;
|
||||||
use reth_consensus_common::validation::calculate_next_block_base_fee;
|
use reth_consensus_common::validation::calculate_next_block_base_fee;
|
||||||
use reth_miner::{
|
use reth_payload_builder::{
|
||||||
error::PayloadBuilderError, BuiltPayload, PayloadBuilderAttributes, PayloadJob,
|
error::PayloadBuilderError, BuiltPayload, PayloadBuilderAttributes, PayloadJob,
|
||||||
PayloadJobGenerator,
|
PayloadJobGenerator,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,18 +1,18 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "reth-miner"
|
name = "reth-payload-builder"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
repository = "https://github.com/paradigmxyz/reth"
|
repository = "https://github.com/paradigmxyz/reth"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Block production"
|
description = "reth payload builder"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
## reth
|
## reth
|
||||||
reth-primitives = { path = "../primitives" }
|
reth-primitives = { path = "../../primitives" }
|
||||||
reth-rpc-types = { path = "../rpc/rpc-types" }
|
reth-rpc-types = { path = "../../rpc/rpc-types" }
|
||||||
reth-rlp = { path = "../rlp" }
|
reth-rlp = { path = "../../rlp" }
|
||||||
reth-interfaces = { path = "../interfaces" }
|
reth-interfaces = { path = "../../interfaces" }
|
||||||
|
|
||||||
## ethereum
|
## ethereum
|
||||||
revm-primitives = "1"
|
revm-primitives = "1"
|
||||||
Reference in New Issue
Block a user