Skip to content

Commit

Permalink
Filter out BlsToExecutionChange messages for 0x02 validators (#6464)
Browse files Browse the repository at this point in the history
* Filter out 0x02 validators from `get_bls_to_execution_changes`

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

* lint
  • Loading branch information
pawanjay176 authored Oct 7, 2024
1 parent 1bd8f31 commit 48dd3f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon_node/operation_pool/src/bls_to_execution_changes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion beacon_node/operation_pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 48dd3f3

Please sign in to comment.