From a311b1a482aa95c284eb6ddf6261479ed05a1b87 Mon Sep 17 00:00:00 2001 From: Eitan Seri- Levi Date: Mon, 9 Feb 2026 19:34:40 -0800 Subject: [PATCH] Use local builder index const --- validator_client/validator_services/src/block_service.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/validator_client/validator_services/src/block_service.rs b/validator_client/validator_services/src/block_service.rs index 1b97e2342f..649f0e09cc 100644 --- a/validator_client/validator_services/src/block_service.rs +++ b/validator_client/validator_services/src/block_service.rs @@ -5,6 +5,7 @@ use eth2::{BeaconNodeHttpClient, StatusCode}; use graffiti_file::{GraffitiFile, determine_graffiti}; use logging::crit; use slot_clock::SlotClock; +use types::consts::gloas::BUILDER_INDEX_SELF_BUILD; use std::fmt::Debug; use std::future::Future; use std::ops::Deref; @@ -645,11 +646,11 @@ impl BlockService { ) -> Result<(), BlockError> { info!(slot = slot.as_u64(), "Fetching execution payload envelope"); - // Fetch the envelope from the beacon node (builder_index=0 for local building) + // Fetch the envelope from the beacon node. Use builder_index=BUILDER_INDEX_SELF_BUILD for local building. let envelope = proposer_fallback .request_proposers_last(|beacon_node| async move { beacon_node - .get_validator_execution_payload_envelope::(slot, 0) + .get_validator_execution_payload_envelope::(slot, BUILDER_INDEX_SELF_BUILD) .await .map(|response| response.data) .map_err(|e| {