From 2766c355e63d9491f448cf0dba67666a096a6452 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 25 Jul 2024 20:34:31 +0200 Subject: [PATCH] feat: invole on_request trackers (#9814) Co-authored-by: Federico Gimenez --- crates/engine/tree/src/tree.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/engine/tree/src/tree.rs b/crates/engine/tree/src/tree.rs index 28b4b21192..395c628f93 100644 --- a/crates/engine/tree/src/tree.rs +++ b/crates/engine/tree/src/tree.rs @@ -543,8 +543,8 @@ where } } BeaconEngineMessage::TransitionConfigurationExchanged => { - // this is a reporting no-op because the engine API impl does not need - // additional input to handle this request + // triggering this hook will record that we received a request from the CL + self.canonical_in_memory_state.on_transition_configuration_exchanged(); } }, FromEngine::DownloadedBlocks(blocks) => { @@ -1435,6 +1435,8 @@ where attrs: Option<::PayloadAttributes>, ) -> ProviderResult> { trace!(target: "engine", ?attrs, "invoked forkchoice update"); + self.canonical_in_memory_state.on_forkchoice_update_received(); + if let Some(on_updated) = self.pre_validate_forkchoice_update(state)? { self.state.forkchoice_state_tracker.set_latest(state, on_updated.forkchoice_status()); return Ok(TreeOutcome::new(on_updated))