mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 08:52:54 +00:00
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:
@@ -113,7 +113,7 @@ impl<E: EthSpec> BlsToExecutionChanges<E> {
|
|||||||
.validators()
|
.validators()
|
||||||
.get(validator_index as usize)
|
.get(validator_index as usize)
|
||||||
.map_or(true, |validator| {
|
.map_or(true, |validator| {
|
||||||
let prune = validator.has_eth1_withdrawal_credential(spec)
|
let prune = validator.has_execution_withdrawal_credential(spec)
|
||||||
&& head_block
|
&& head_block
|
||||||
.message()
|
.message()
|
||||||
.body()
|
.body()
|
||||||
|
|||||||
@@ -585,7 +585,7 @@ impl<E: EthSpec> OperationPool<E> {
|
|||||||
&& state
|
&& state
|
||||||
.get_validator(address_change.as_inner().message.validator_index as usize)
|
.get_validator(address_change.as_inner().message.validator_index as usize)
|
||||||
.map_or(false, |validator| {
|
.map_or(false, |validator| {
|
||||||
!validator.has_eth1_withdrawal_credential(spec)
|
!validator.has_execution_withdrawal_credential(spec)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|address_change| address_change.as_inner().clone(),
|
|address_change| address_change.as_inner().clone(),
|
||||||
|
|||||||
Reference in New Issue
Block a user