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: decrease success rate if validator fails to relay #1295

Merged
merged 4 commits into from
Sep 19, 2024

Conversation

maharifu
Copy link
Contributor

Related Github tickets

Background

Currently if the assigned validator fails to relay a message it is simply removed from the queue and does not count as a failure to the assigned validator. This means if a validator is incapable or unwilling to relay messages, it's success rate metric never changes.

When removing messages from the queue, we check if it was relayed (it has public or error data). If it does not, then we consider it a failure and update the validator metrics.

Testing completed

  • test coverage exists or has been added/updated
  • tested in a private testnet

Breaking changes

  • I have checked my code for breaking changes
  • If there are breaking changes, there is a supporting migration.

@taariq taariq merged commit a5377d2 into palomachain:master Sep 19, 2024
4 checks passed
@taariq taariq deleted the fix/jail_validators_not_relaying branch September 19, 2024 17:36
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.

Unrelayed messages should count as failures for the assigned validator
3 participants