@@ -362,7 +362,6 @@ pub struct BeaconChain<T: BeaconChainTypes> {
362362 pub ( crate ) observed_attester_slashings :
363363 Mutex < ObservedOperations < AttesterSlashing < T :: EthSpec > , T :: EthSpec > > ,
364364 /// Maintains a record of which validators we've seen BLS to execution changes for.
365- #[ cfg( feature = "withdrawals-processing" ) ]
366365 pub ( crate ) observed_bls_to_execution_changes :
367366 Mutex < ObservedOperations < SignedBlsToExecutionChange , T :: EthSpec > > ,
368367 /// The most recently validated light client finality update received on gossip.
@@ -2232,29 +2231,18 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
22322231 & self ,
22332232 bls_to_execution_change : SignedBlsToExecutionChange ,
22342233 ) -> Result < ObservationOutcome < SignedBlsToExecutionChange , T :: EthSpec > , Error > {
2235- #[ cfg( feature = "withdrawals-processing" ) ]
2236- {
2237- let current_fork = self . spec . fork_name_at_slot :: < T :: EthSpec > ( self . slot ( ) ?) ;
2238- if let ForkName :: Base | ForkName :: Altair | ForkName :: Merge = current_fork {
2239- // Disallow BLS to execution changes prior to the Capella fork.
2240- return Err ( Error :: BlsToExecutionChangeBadFork ( current_fork) ) ;
2241- }
2242-
2243- let wall_clock_state = self . wall_clock_state ( ) ?;
2244-
2245- Ok ( self
2246- . observed_bls_to_execution_changes
2247- . lock ( )
2248- . verify_and_observe ( bls_to_execution_change, & wall_clock_state, & self . spec ) ?)
2234+ let current_fork = self . spec . fork_name_at_slot :: < T :: EthSpec > ( self . slot ( ) ?) ;
2235+ if let ForkName :: Base | ForkName :: Altair | ForkName :: Merge = current_fork {
2236+ // Disallow BLS to execution changes prior to the Capella fork.
2237+ return Err ( Error :: BlsToExecutionChangeBadFork ( current_fork) ) ;
22492238 }
22502239
2251- // TODO: remove this whole block once withdrawals-processing is removed
2252- #[ cfg( not( feature = "withdrawals-processing" ) ) ]
2253- {
2254- #[ allow( clippy:: drop_non_drop) ]
2255- drop ( bls_to_execution_change) ;
2256- Ok ( ObservationOutcome :: AlreadyKnown )
2257- }
2240+ let wall_clock_state = self . wall_clock_state ( ) ?;
2241+
2242+ Ok ( self
2243+ . observed_bls_to_execution_changes
2244+ . lock ( )
2245+ . verify_and_observe ( bls_to_execution_change, & wall_clock_state, & self . spec ) ?)
22582246 }
22592247
22602248 /// Import a BLS to execution change to the op pool.
@@ -2263,12 +2251,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
22632251 bls_to_execution_change : SigVerifiedOp < SignedBlsToExecutionChange , T :: EthSpec > ,
22642252 ) {
22652253 if self . eth1_chain . is_some ( ) {
2266- #[ cfg( feature = "withdrawals-processing" ) ]
22672254 self . op_pool
22682255 . insert_bls_to_execution_change ( bls_to_execution_change) ;
2269-
2270- #[ cfg( not( feature = "withdrawals-processing" ) ) ]
2271- drop ( bls_to_execution_change) ;
22722256 }
22732257 }
22742258
0 commit comments