mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: ExExEvent::FinishedHeight takes BlockNumHash instead (#11278)
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
This commit is contained in:
@ -41,7 +41,7 @@ use reth_node_ethereum::{
|
||||
EthEngineTypes, EthEvmConfig,
|
||||
};
|
||||
use reth_payload_builder::noop::NoopPayloadBuilderService;
|
||||
use reth_primitives::{Head, SealedBlockWithSenders};
|
||||
use reth_primitives::{BlockNumHash, Head, SealedBlockWithSenders};
|
||||
use reth_provider::{
|
||||
providers::{BlockchainProvider, StaticFileProvider},
|
||||
BlockReader, ProviderFactory,
|
||||
@ -223,7 +223,7 @@ impl TestExExHandle {
|
||||
/// Asserts that the Execution Extension emitted a `FinishedHeight` event with the correct
|
||||
/// height.
|
||||
#[track_caller]
|
||||
pub fn assert_event_finished_height(&mut self, height: u64) -> eyre::Result<()> {
|
||||
pub fn assert_event_finished_height(&mut self, height: BlockNumHash) -> eyre::Result<()> {
|
||||
let event = self.events_rx.try_recv()?;
|
||||
assert_eq!(event, ExExEvent::FinishedHeight(height));
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user