Skip to content

Commit 48dd3f3

Browse files
authored
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
1 parent 1bd8f31 commit 48dd3f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

beacon_node/operation_pool/src/bls_to_execution_changes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl<E: EthSpec> BlsToExecutionChanges<E> {
113113
.validators()
114114
.get(validator_index as usize)
115115
.map_or(true, |validator| {
116-
let prune = validator.has_eth1_withdrawal_credential(spec)
116+
let prune = validator.has_execution_withdrawal_credential(spec)
117117
&& head_block
118118
.message()
119119
.body()

beacon_node/operation_pool/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ impl<E: EthSpec> OperationPool<E> {
585585
&& state
586586
.get_validator(address_change.as_inner().message.validator_index as usize)
587587
.map_or(false, |validator| {
588-
!validator.has_eth1_withdrawal_credential(spec)
588+
!validator.has_execution_withdrawal_credential(spec)
589589
})
590590
},
591591
|address_change| address_change.as_inner().clone(),

0 commit comments

Comments
 (0)