Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve relayer picking (#1301)
# Related Github tickets - Closes #2193 # 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 - [x] test coverage exists or has been added/updated - [x] tested in a private testnet # Breaking changes - [x] I have checked my code for breaking changes - [x] If there are breaking changes, there is a supporting migration.
- Loading branch information