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

[miner] Add ability for a miner to resume its tenure if it comes online in the middle of one #5526

Open
jferrant opened this issue Dec 3, 2024 · 0 comments

Comments

@jferrant
Copy link
Collaborator

jferrant commented Dec 3, 2024

Currently there doesn't seem to be any logic for a miner that restarts in the middle of a tenure to continue mining blocks. Similarly a miner that crashes before it starts its tenure and comes online in the middle of its tenure fails to mine stacks blocks.

We might need to add a new miner directive like "resume_tenure" which will check if it is the winning miner. If it was, it needs to check if it already issued the necessary tenure change payload transactions, issue it if required, and continue mining stacks blocks as before. Take a look at how we currently handle empty sortitions using the MinerReason::EmptyTenure as there might be some code reuse here.

Relates to #5361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Status: 🆕 New
Development

No branches or pull requests

1 participant