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

On chain root peers #2535

Closed
coot opened this issue Aug 24, 2020 · 3 comments · Fixed by #2536
Closed

On chain root peers #2535

coot opened this issue Aug 24, 2020 · 3 comments · Fixed by #2536
Assignees

Comments

@coot
Copy link
Contributor

coot commented Aug 24, 2020

The peer governor needs to sample peers from the pools registered on the chain. We would like to sample them according to stake distribution.

The governor has a method for getting root peers (using IO) which we can construct provided a list of DomainAddress ~ (DNS, PortNumber). Giving us something like m [DomainAddress] should work just fine.

The governor asks for root peers with an exponential backoff in case of failures, ensuring that it is not done too often.

@coot coot added the consensus issues related to ouroboros-consensus label Aug 24, 2020
@mrBliss mrBliss added this to the S20 2020-08-27 milestone Aug 24, 2020
mrBliss added a commit that referenced this issue Aug 24, 2020
Fixes #2535.

For Shelley, this returns the stake pool relays ordered by descending stake.
mrBliss added a commit that referenced this issue Aug 25, 2020
Fixes #2535.

For Shelley, this returns the stake pool relays ordered by descending stake.
@mrBliss mrBliss modified the milestones: S20 2020-08-27, S21 2020-09-10 Sep 1, 2020
mrBliss added a commit that referenced this issue Sep 8, 2020
Fixes #2535.

For Shelley, this returns the stake pool relays ordered by descending stake.
iohk-bors bot added a commit that referenced this issue Dec 10, 2020
2536: LedgerSupportsPeerSelection: return peers registered in ledger state r=mrBliss a=mrBliss

Fixes #2535.

For Shelley, this returns the stake pool relays ordered by descending stake.

Co-authored-by: Thomas Winant <thomas@well-typed.com>
Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
@iohk-bors iohk-bors bot closed this as completed in 2e771ab Dec 10, 2020
@karknu karknu reopened this Dec 10, 2020
@karknu
Copy link
Contributor

karknu commented Dec 10, 2020

This issue isn't done yet.

@mrBliss mrBliss removed their assignment Jan 7, 2021
@mrBliss mrBliss removed the consensus issues related to ouroboros-consensus label Jan 7, 2021
@mrBliss
Copy link
Contributor

mrBliss commented Jan 7, 2021

The consensus-side of this has been done in #2536, removing the consensus label now.

@karknu
Copy link
Contributor

karknu commented Jan 12, 2022

This is done.

@karknu karknu closed this as completed Jan 12, 2022
@karknu karknu moved this to Done in Ouroboros Network Jan 12, 2022
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 a pull request may close this issue.

3 participants