feat: add header AT to provider (#13030)

Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
This commit is contained in:
Matthias Seitz
2024-12-02 14:24:48 +01:00
committed by GitHub
parent 519a10ae99
commit 332cce1f9b
71 changed files with 669 additions and 434 deletions

View File

@ -29,6 +29,7 @@ reth-transaction-pool.workspace = true
reth-stages-api.workspace = true
# alloy
alloy-consensus.workspace = true
alloy-primitives.workspace = true
alloy-rpc-types-engine.workspace = true

View File

@ -1,5 +1,6 @@
//! Contains the implementation of the mining mode for the local engine.
use alloy_consensus::BlockHeader;
use alloy_primitives::{TxHash, B256};
use alloy_rpc_types_engine::{CancunPayloadFields, ExecutionPayloadSidecar, ForkchoiceState};
use eyre::OptionExt;
@ -114,7 +115,7 @@ where
to_engine,
mode,
payload_builder,
last_timestamp: latest_header.timestamp,
last_timestamp: latest_header.timestamp(),
last_block_hashes: vec![latest_header.hash()],
};