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

fix: add new validators on initial query and becomde validator tx #130

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

mateuszjasiuk
Copy link
Collaborator

@mateuszjasiuk mateuszjasiuk commented Oct 9, 2024

Resolves #129

@@ -198,6 +200,44 @@ pub fn update_validator_metadata(
anyhow::Ok(())
}

pub fn upsert_validators(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copied from pos service

@@ -596,6 +597,96 @@ pub async fn query_all_votes(
anyhow::Ok(votes.iter().flatten().cloned().collect())
}

pub async fn get_validator_set_at_epoch(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copied from pos service

@mateuszjasiuk mateuszjasiuk added this pull request to the merge queue Oct 9, 2024
Merged via the queue into main with commit 667abcf Oct 9, 2024
8 checks passed
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.

chain service panics when validator not found, causing db PoisonError
2 participants