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

Implement missing status checks #24

Merged
merged 10 commits into from
Jun 18, 2024

Conversation

huy-nodeset
Copy link
Contributor

No description provided.

@huy-nodeset huy-nodeset requested a review from jclapis June 17, 2024 18:48
func GetNodesetStatus(pubKey beacon.ValidatorPubkey, registeredPubkeysStatusMapping map[beacon.ValidatorPubkey]string) swtypes.NodesetStatus {
for registeredPubKey, nodesetStatus := range registeredPubkeysStatusMapping {
if registeredPubKey == pubKey {
if nodesetStatus == "REGISTERED" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Making a note that we'll have to revisit this later to turn these into enum values once they've been solidified

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

go.mod Outdated
@@ -11,7 +11,7 @@ require (
github.com/google/uuid v1.6.0
github.com/gorilla/mux v1.8.1
github.com/nodeset-org/hyperdrive-daemon v0.5.0-b1.0.20240614184837-e4f7a44efd10
github.com/nodeset-org/nodeset-svc-mock v0.1.1-0.20240614184020-4f7aeb08967e
github.com/nodeset-org/nodeset-svc-mock v0.1.1-0.20240617160247-3ac8bfac0cb9
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can update this to v0.2.0 now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

// Mark the validator as active
err = nsMock.MarkValidatorRegistered(vault, network, depositDataSet)
require.NoError(t, err)
t.Log("Deposit data set marked as uploaded")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should say registered instead of uploaded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

…om:nodeset-org/hyperdrive-stakewise into feature/implement-additional-status-checks
@jclapis jclapis merged commit 80f826f into dev Jun 18, 2024
4 checks passed
@huy-nodeset huy-nodeset deleted the feature/implement-additional-status-checks branch June 18, 2024 20:35
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