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

Uptime validation nits #1378

Merged
merged 9 commits into from
Nov 6, 2024

Conversation

ceyonur
Copy link
Collaborator

@ceyonur ceyonur commented Nov 4, 2024

Why this should be merged

  • Adds a example for uptime warp msg signing
  • Adds IsSoV and weight fields to validators

How this was tested

Added e2e test

How is this documented

should document whole GetCurrentValidators API

@ceyonur ceyonur self-assigned this Nov 4, 2024
@ceyonur ceyonur requested review from darioush and a team as code owners November 4, 2024 17:56
examples/sign-uptime-message/main.go Show resolved Hide resolved
examples/sign-uptime-message/main.go Show resolved Hide resolved
@@ -45,7 +45,7 @@ func (n *noOpState) GetStartTime(
return time.Time{}, nil
}

func (n *noOpState) AddValidator(vID ids.ID, nodeID ids.NodeID, startTimestamp uint64, isActive bool) error {
func (n *noOpState) AddValidator(vID ids.ID, nodeID ids.NodeID, weight uint64, startTimestamp uint64, isActive bool, isSoV bool) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: should we just use the Validator struct here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@ceyonur ceyonur merged commit 3912f84 into sign-validator-uptime-warp-msg Nov 6, 2024
12 checks passed
@ceyonur ceyonur deleted the uptime-validation-nits branch November 6, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants