mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: Add version to BeaconEngineMessage FCU (#12089)
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
This commit is contained in:
@ -18,7 +18,9 @@ use reth_engine_util::engine_store::{EngineMessageStore, StoredEngineApiMessage}
|
||||
use reth_fs_util as fs;
|
||||
use reth_network::{BlockDownloaderProvider, NetworkHandle};
|
||||
use reth_network_api::NetworkInfo;
|
||||
use reth_node_api::{NodeTypesWithDB, NodeTypesWithDBAdapter, NodeTypesWithEngine};
|
||||
use reth_node_api::{
|
||||
EngineApiMessageVersion, NodeTypesWithDB, NodeTypesWithDBAdapter, NodeTypesWithEngine,
|
||||
};
|
||||
use reth_node_ethereum::{EthEngineTypes, EthEvmConfig, EthExecutorProvider};
|
||||
use reth_payload_builder::{PayloadBuilderHandle, PayloadBuilderService};
|
||||
use reth_provider::{
|
||||
@ -166,8 +168,13 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
|
||||
debug!(target: "reth::cli", filepath = %filepath.display(), ?message, "Forwarding Engine API message");
|
||||
match message {
|
||||
StoredEngineApiMessage::ForkchoiceUpdated { state, payload_attrs } => {
|
||||
let response =
|
||||
beacon_engine_handle.fork_choice_updated(state, payload_attrs).await?;
|
||||
let response = beacon_engine_handle
|
||||
.fork_choice_updated(
|
||||
state,
|
||||
payload_attrs,
|
||||
EngineApiMessageVersion::default(),
|
||||
)
|
||||
.await?;
|
||||
debug!(target: "reth::cli", ?response, "Received for forkchoice updated");
|
||||
}
|
||||
StoredEngineApiMessage::NewPayload { payload, sidecar } => {
|
||||
|
||||
Reference in New Issue
Block a user