mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Merge branch 'p2p-electra' of https://github.com/sigp/lighthouse into ef-tests-electra
This commit is contained in:
@@ -559,8 +559,8 @@ pub fn process_execution_layer_withdrawal_requests<E: EthSpec>(
|
|||||||
let has_correct_credential = validator.has_execution_withdrawal_credential(spec);
|
let has_correct_credential = validator.has_execution_withdrawal_credential(spec);
|
||||||
let is_correct_source_address = validator
|
let is_correct_source_address = validator
|
||||||
.get_execution_withdrawal_address(spec)
|
.get_execution_withdrawal_address(spec)
|
||||||
.ok_or(BeaconStateError::NonExecutionAddresWithdrawalCredential)?
|
.map(|addr| addr == request.source_address)
|
||||||
== request.source_address;
|
.unwrap_or(false);
|
||||||
|
|
||||||
if !(has_correct_credential && is_correct_source_address) {
|
if !(has_correct_credential && is_correct_source_address) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@@ -681,10 +681,9 @@ where
|
|||||||
let source_index = consolidation.message.source_index as usize;
|
let source_index = consolidation.message.source_index as usize;
|
||||||
let target_index = consolidation.message.target_index as usize;
|
let target_index = consolidation.message.target_index as usize;
|
||||||
|
|
||||||
let domain = spec.get_domain(
|
let domain = spec.compute_domain(
|
||||||
consolidation.message.epoch,
|
|
||||||
Domain::Consolidation,
|
Domain::Consolidation,
|
||||||
&state.fork(),
|
spec.genesis_fork_version,
|
||||||
state.genesis_validators_root(),
|
state.genesis_validators_root(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user