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

feat: improve relayer picking #1301

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

maharifu
Copy link
Contributor

Related Github tickets

Background

At the moment we always pick the same validator to relay messages. We need to improve this mechanism to pick different validators, especially if the one selected is failing to relay messages. With this PR:

  • We will pick randomly from the top 5 validators.
  • On every failed message delivery, the success rate of a validator drops to the base score of 0.5 if it's above 0.5.

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 e60029d into palomachain:master Sep 24, 2024
4 checks passed
@taariq taariq deleted the feat/improve_relayer_picking branch September 24, 2024 16:37
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.

Improve relayer pick mechanism
3 participants