refactor: introduce BasicPayloadServiceBuilder (#14700)

This commit is contained in:
Arsenii Kulikov
2025-02-26 03:45:07 +04:00
committed by GitHub
parent 75ca54b790
commit 77aa17fb57
22 changed files with 142 additions and 162 deletions

View File

@@ -18,7 +18,7 @@ use reth_node_core::{
node_config::NodeConfig,
version::{CARGO_PKG_VERSION, CLIENT_CODE, NAME_CLIENT, VERGEN_GIT_SHA},
};
use reth_payload_builder::PayloadStore;
use reth_payload_builder::{PayloadBuilderHandle, PayloadStore};
use reth_provider::ChainSpecProvider;
use reth_rpc::{
eth::{EthApiTypes, FullEthApiServer},
@@ -293,8 +293,10 @@ where
}
/// Returns the handle to the payload builder service
pub fn payload_builder(&self) -> &Node::PayloadBuilder {
self.node.payload_builder()
pub fn payload_builder_handle(
&self,
) -> &PayloadBuilderHandle<<Node::Types as NodeTypesWithEngine>::Engine> {
self.node.payload_builder_handle()
}
}