Filter out BlsToExecutionChange messages for 0x02 validators (#6464)

* Filter out 0x02 validators from `get_bls_to_execution_changes`

* Prune bls to execution changes that have a 0x02 credential

* lint
This commit is contained in:
Pawan Dhananjay
2024-10-07 09:35:38 -07:00
committed by GitHub
parent 1bd8f31545
commit 48dd3f385c
2 changed files with 2 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ impl<E: EthSpec> BlsToExecutionChanges<E> {
.validators()
.get(validator_index as usize)
.map_or(true, |validator| {
let prune = validator.has_eth1_withdrawal_credential(spec)
let prune = validator.has_execution_withdrawal_credential(spec)
&& head_block
.message()
.body()

View File

@@ -585,7 +585,7 @@ impl<E: EthSpec> OperationPool<E> {
&& state
.get_validator(address_change.as_inner().message.validator_index as usize)
.map_or(false, |validator| {
!validator.has_eth1_withdrawal_credential(spec)
!validator.has_execution_withdrawal_credential(spec)
})
},
|address_change| address_change.as_inner().clone(),