-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
func GetNodesetStatus(pubKey beacon.ValidatorPubkey, registeredPubkeysStatusMapping map[beacon.ValidatorPubkey]string) swtypes.NodesetStatus { | ||
for registeredPubKey, nodesetStatus := range registeredPubkeysStatusMapping { | ||
if registeredPubKey == pubKey { | ||
if nodesetStatus == "REGISTERED" { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
internal/tests/api/status_test.go
Outdated
// Mark the validator as active | ||
err = nsMock.MarkValidatorRegistered(vault, network, depositDataSet) | ||
require.NoError(t, err) | ||
t.Log("Deposit data set marked as uploaded") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
No description provided.