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

Add endpoint for usable hosts to bus #1642

Open
ChrisSchinnerl opened this issue Oct 31, 2024 · 0 comments
Open

Add endpoint for usable hosts to bus #1642

ChrisSchinnerl opened this issue Oct 31, 2024 · 0 comments
Assignees
Milestone

Comments

@ChrisSchinnerl
Copy link
Member

The bus should have an endpoint that returns a list of good hosts. That includes the public key of the host and its siamux address.

The hosts should be

  • good according to the autopilot
  • not blocked
  • not gouging
    at the time they are returned from the bus

The goal of the PR should be to

  1. introduce that new endpoint
  2. change DownloadContracts in the cache to UsableHosts, making use of the new endpoint while also making sure the download code as well as the account refill code don't rely on contracts anymore.

Ideally this leads to only the upload code still requiring contracts and gouging checks in the worker.

@ChrisSchinnerl ChrisSchinnerl added this to the v2.0.0 milestone Oct 31, 2024
@peterjan peterjan self-assigned this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

No branches or pull requests

2 participants