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

Make schedling more spread across validators #903

Merged

Conversation

ToasterTheBrave
Copy link
Contributor

Related Github tickets

Background

I'm seeing the same validator selected too often when trying to be random. Instead, let's just round-robin through the highest scorers.

  • This means a single validator will get all messages for a single block, and a different validator will get all messsages for the next block
  • We may want to change this in the future when we have more transactions per block, but for now, this should spread the load more evenly

Testing completed

  • tests already exist and didn't break
  • tested in a local private testnet

Breaking changes

  • I have checked my code for breaking changes

* I'm seeing the same validator selected too often when trying to be
  random.  Instead, let's just round-robin through the highest scorers.
* This means a single validator will get all messages for a single
  block, and a different validator will get all messsages for the next
block
* We may want to change this in the future when we have more
  transactions per block, but for now, this should spread the load more
evenly
@ToasterTheBrave ToasterTheBrave merged commit 1d5f7b7 into palomachain:master Jul 6, 2023
1 check passed
@ToasterTheBrave ToasterTheBrave deleted the toaster/more-spreading-of-jobs branch July 6, 2023 16:14
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.

2 participants