Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow creating new stake if allow list is enabled #96

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

KonradStaniec
Copy link
Collaborator

  • adjust for allow list modification in babylon v0.16.0, new stake can't be created if allow list is enabled

Copy link
Member

@Lazar955 Lazar955 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work!

@KonradStaniec KonradStaniec merged commit 900c255 into main Nov 14, 2024
12 checks passed
@KonradStaniec KonradStaniec deleted the konradstaniec/check-for-allow-list branch November 14, 2024 12:59
Comment on lines +1794 to +1795
// we add +1 to account for comet bft lazy execution
if latestBlockHeight <= params.AllowListExpirationHeight+1 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trying to understand this. So, this check means if AllowListExpirationHeight = 100, new delegations can be made when the latest block height is >= 102. Is this expected? I thought new delegations should be able to be made if latest block height is >=100 as they will be included in 101 which is > AllowListExpirationHeight=100

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.

3 participants