From d99e6620e677b94fbc6cf5e6d6568575858a4667 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 9 Jan 2024 17:13:51 +0100 Subject: [PATCH] update interface --- bin/reth/src/commands/debug_cmd/replay_engine.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/reth/src/commands/debug_cmd/replay_engine.rs b/bin/reth/src/commands/debug_cmd/replay_engine.rs index a1b37da992961..f09c2c78e7d5b 100644 --- a/bin/reth/src/commands/debug_cmd/replay_engine.rs +++ b/bin/reth/src/commands/debug_cmd/replay_engine.rs @@ -26,7 +26,7 @@ use reth_primitives::{ fs::{self}, ChainSpec, }; -use reth_provider::{providers::BlockchainProvider, ProviderFactory}; +use reth_provider::{providers::BlockchainProvider, CanonStateSubscriptions, ProviderFactory}; use reth_revm::EvmProcessorFactory; use reth_rpc_types::{ engine::{CancunPayloadFields, ForkchoiceState, PayloadAttributes}, @@ -175,7 +175,10 @@ impl Command { self.chain.clone(), payload_builder, ); - let (payload_service, payload_builder) = PayloadBuilderService::new(payload_generator); + let (payload_service, payload_builder) = PayloadBuilderService::new( + payload_generator, + blockchain_db.subscribe_to_canonical_state(), + ); ctx.task_executor.spawn_critical("payload builder service", Box::pin(payload_service)); // Configure the consensus engine