Skip to content

fix: use mutable validator object - #6774

Merged
ensi321 merged 1 commit into
electra-forkfrom
nc/fix-epoch-update
May 14, 2024
Merged

fix: use mutable validator object#6774
ensi321 merged 1 commit into
electra-forkfrom
nc/fix-epoch-update

Conversation

@ensi321

@ensi321 ensi321 commented May 14, 2024

Copy link
Copy Markdown
Member

Used getReadOnly() validator object when setting epochs. Use get() instead

@ensi321
ensi321 requested a review from a team as a code owner May 14, 2024 12:25
@ensi321 ensi321 changed the title Use mutable validator object fix: use mutable validator object May 14, 2024

@matthewkeil matthewkeil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!! 馃幐

@ensi321
ensi321 merged commit 651eee1 into electra-fork May 14, 2024
}

const validator = validators.getReadonly(validatorIndex);
const validator = validators.get(validatorIndex);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To avoid such logical issues for future we should fix the types.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

g11tech pushed a commit that referenced this pull request May 24, 2024
Use mutable validator object
g11tech pushed a commit to g11tech/lodestar that referenced this pull request Jun 19, 2024
g11tech pushed a commit that referenced this pull request Jun 25, 2024
Use mutable validator object
g11tech pushed a commit that referenced this pull request Jun 25, 2024
Use mutable validator object
g11tech pushed a commit that referenced this pull request Jul 1, 2024
Use mutable validator object
g11tech pushed a commit that referenced this pull request Jul 30, 2024
Use mutable validator object
g11tech pushed a commit that referenced this pull request Jul 31, 2024
Use mutable validator object
g11tech pushed a commit that referenced this pull request Aug 2, 2024
Use mutable validator object
g11tech pushed a commit that referenced this pull request Aug 9, 2024
Use mutable validator object
g11tech pushed a commit that referenced this pull request Aug 9, 2024
Use mutable validator object
g11tech pushed a commit that referenced this pull request Aug 23, 2024
Use mutable validator object
g11tech pushed a commit that referenced this pull request Aug 27, 2024
Use mutable validator object
philknows pushed a commit that referenced this pull request Sep 3, 2024
Use mutable validator object
@wemeetagain

Copy link
Copy Markdown
Member

馃帀 This PR is included in v1.22.0 馃帀

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.

5 participants