Skip to content

Validator consolidation via activation churn#13

Closed
mkalinin wants to merge 2 commits into
michaelneuder:maxeb-pyspec-min-viablefrom
mkalinin:consolidation-via-churn
Closed

Validator consolidation via activation churn#13
mkalinin wants to merge 2 commits into
michaelneuder:maxeb-pyspec-min-viablefrom
mkalinin:consolidation-via-churn

Conversation

@mkalinin
Copy link
Copy Markdown
Collaborator

A simplified version of #12 that does not require changes to the slashing logic.

On process_consolidation in a block:

  • Make the source exit with the exit_epoch = compute_activation_exit_epoch(get_current_epoch(state)) bypassing the exit churn
  • Queue the consolidation with consolidation_epoch = source.withdrawable_epoch

On epoch_processing:

  • If current_epoch == pending_consolidation.epoch and the source wasn’t slashed move the active balance
  • The active balance is simply added to the activation churn as a top up of the target validator

Downsides:

  • Waiting for withdrawal_epoch to finish consolidation
  • Time needed to activate consolidated balance is unpredictable as the activation queue may get longer while keep waiting for the withdrawal_epoch

Comment thread specs/_features/maxeb_increase/capella.py Outdated
Co-authored-by: Lion - dapplion <35266934+dapplion@users.noreply.github.com>
@mkalinin
Copy link
Copy Markdown
Collaborator Author

Closing in favour of #14

@mkalinin mkalinin closed this Jan 19, 2024
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.

2 participants