Skip to content

Conversation

@rodrigo-o
Copy link
Collaborator

@rodrigo-o rodrigo-o commented Sep 13, 2024

Motivation

Refactor some logic to be in it's proper place

Description

This PR moves Keystore functions from the ValidatorSet to the Keystore and also create and add and delete function in the ValidatorSet to avoid foreign logic in LibP2P. It also re adds the slot to the ValidatorSet struct and update them (slot + root) always to be able to instantiate the new validator in the correct slot & root.

Closes #1281

@rodrigo-o rodrigo-o marked this pull request as ready for review September 17, 2024 13:35
@rodrigo-o rodrigo-o requested a review from a team as a code owner September 17, 2024 13:35
Copy link
Collaborator

@Arkenan Arkenan left a comment

Choose a reason for hiding this comment

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

LGTM

@Arkenan Arkenan merged commit 4a5b6e9 into main Sep 17, 2024
@Arkenan Arkenan deleted the validatorset-add-and-delete branch September 17, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

ValidatorSet and Keystore related refactor

3 participants