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

Tweak SmesherService API #3222

Closed
Tracked by #126
brusherru opened this issue May 24, 2022 · 1 comment
Closed
Tracked by #126

Tweak SmesherService API #3222

brusherru opened this issue May 24, 2022 · 1 comment
Labels

Comments

@brusherru
Copy link
Member

Rationale

We need to implement some APIs to make it possible to show all interesting information to our smeshers.
Check out the issue: spacemeshos/smapp#912

Required API endpoints

SmesherService.EstimatedRewards

SmesherService.SmeshingStatus
I think we also need a stream or only stream that sends the latest state to new subscribers before sending the next updates.

  • It does not exist. Most likely we need to have a discussion about it.

  • This is some kind of extended version of IsSmeshing, it tells API consumers what really happens under the hood:

    • Not smeshing
    • Creating PoS data
    • Waiting for PoET
    • GeneratingPoST
    • Eligible for rewards
    • Publishing ballot
    • doing something else
    • Not eligible: error
  • We should pay attention, that some of these statuses make sense for the upcoming epoch.
    E.G. we're waiting for PoET for the next layer, but we're already eligible in this epoch and even publishing ballots from time to time.
    So probably it should return statuses for current and next epochs separately.


Please, share your ideas and thoughts, maybe you know how to solve the problem better and simpler.
cc: @noam, @moshababo, @countvonzero, @dshulyak, @oriya, @avive

@abergasov
Copy link
Contributor

SmesherService.SmeshingStatus endpoint will be done in separate issue
#3281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants