Skip to content

Commit

Permalink
Fix Consolidation Sigs & Withdrawals
Browse files Browse the repository at this point in the history
  • Loading branch information
ethDreamer authored and realbigsean committed Jun 25, 2024
1 parent ae5e26d commit 1a1c0b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ pub fn process_execution_layer_withdrawal_requests<E: EthSpec>(
let has_correct_credential = validator.has_execution_withdrawal_credential(spec);
let is_correct_source_address = validator
.get_execution_withdrawal_address(spec)
.ok_or(BeaconStateError::NonExecutionAddresWithdrawalCredential)?
== request.source_address;
.map(|addr| addr == request.source_address)
.unwrap_or(false);

if !(has_correct_credential && is_correct_source_address) {
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -681,10 +681,9 @@ where
let source_index = consolidation.message.source_index as usize;
let target_index = consolidation.message.target_index as usize;

let domain = spec.get_domain(
consolidation.message.epoch,
let domain = spec.compute_domain(
Domain::Consolidation,
&state.fork(),
spec.genesis_fork_version,
state.genesis_validators_root(),
);

Expand Down

0 comments on commit 1a1c0b5

Please sign in to comment.