Skip to content

Verify target withdrawal address matches the vault in consolidations - #807

Open
cyc60 wants to merge 1 commit into
masterfrom
verify-consolidation-target-withdrawal-address
Open

Verify target withdrawal address matches the vault in consolidations#807
cyc60 wants to merge 1 commit into
masterfrom
verify-consolidation-target-withdrawal-address

Conversation

@cyc60

@cyc60 cyc60 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Description

Consolidation sources are checked for a vault-matching withdrawal address, but plain-consolidation targets were not. The consensus layer silently ignores a consolidation whose source withdrawal address does not match the request, while a consolidation into a target with foreign withdrawal credentials is executed — moving the sources' balance into a validator the vault cannot withdraw from.

  • ConsolidationSelector._find_validators_candidates: exclude validators whose withdrawal address does not match the vault from target candidacy (the check now covers both source and target roles).
  • ConsolidationChecker._validate_target_validator: reject a plain-consolidation target whose withdrawal address does not match the vault, consistent with the existing source check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant