From 8a53da9906caa865dfb4bbe5fb6e1b5fa86e3438 Mon Sep 17 00:00:00 2001 From: Eitan Seri- Levi Date: Mon, 9 Feb 2026 20:46:24 -0800 Subject: [PATCH] Add unexpected error variant --- beacon_node/beacon_chain/src/block_production/gloas.rs | 5 +---- beacon_node/beacon_chain/src/errors.rs | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/beacon_node/beacon_chain/src/block_production/gloas.rs b/beacon_node/beacon_chain/src/block_production/gloas.rs index 9b6285bbac..6312885af2 100644 --- a/beacon_node/beacon_chain/src/block_production/gloas.rs +++ b/beacon_node/beacon_chain/src/block_production/gloas.rs @@ -692,11 +692,8 @@ impl BeaconChain { )); } } - // TODO(gloas) we should never receive a blinded response. - // Should return some type of `Unexpected` error variant as this should never happen - // in the V4 block production flow BlockProposalContentsType::Blinded(_) => { - return Err(BlockProductionError::GloasNotImplemented); + return Err(BlockProductionError::Unexpected("Should never produce a blinded block post-Gloas".to_owned())); } }; diff --git a/beacon_node/beacon_chain/src/errors.rs b/beacon_node/beacon_chain/src/errors.rs index bd6c13e364..36bc4d7a75 100644 --- a/beacon_node/beacon_chain/src/errors.rs +++ b/beacon_node/beacon_chain/src/errors.rs @@ -321,6 +321,7 @@ pub enum BlockProductionError { SszTypesError(ssz_types::Error), // TODO(gloas): Remove this once Gloas is implemented GloasNotImplemented, + Unexpected(String), } easy_from_to!(BlockProcessingError, BlockProductionError);