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

Implement miner changes for time-based tenure extensions #5468

Open
obycode opened this issue Nov 15, 2024 · 0 comments
Open

Implement miner changes for time-based tenure extensions #5468

obycode opened this issue Nov 15, 2024 · 0 comments
Assignees
Milestone

Comments

@obycode
Copy link
Contributor

obycode commented Nov 15, 2024

The miner needs to now keep track of the signers’ current idle timestamps and decide when it can refresh its budget with a tenure extension. A new component will process the StackerDB messages as they arrive, rather than directly in the sign coordinator. This is important because the sign coordinator stops listening for block responses from signers as soon as it hits the 70% threshold, but it is important for the miner to track the idle timestamps of all signers that report it. This component will be responsible for keeping track of the signers' latest idle timestamps, queryable from the miner. It will also provide the sign coordinator with block signatures. After each round of signing, the miner should record its estimated time to extend. It can compute this by ordering the countdown responses in ascending order, and selecting a time at which > 70% of the signing power will have passed their timestamp. Before each attempt to mine a block, check if this timestamp has passed and if so, issue the tenure extension.

See #5434

@github-project-automation github-project-automation bot moved this to Status: 🆕 New in Stacks Core Eng Nov 15, 2024
@obycode obycode self-assigned this Nov 15, 2024
@obycode obycode moved this from Status: 🆕 New to Status: 💻 In Progress in Stacks Core Eng Nov 15, 2024
@aldur aldur added this to the Tenure extend milestone Nov 18, 2024
@obycode obycode changed the title Import miner changes for time-based tenure extensions Implement miner changes for time-based tenure extensions Nov 18, 2024
@hstove hstove moved this from Status: 💻 In Progress to Status: In Review in Stacks Core Eng Dec 3, 2024
@aldur aldur moved this from Status: In Review to Status: ✅ Done in Stacks Core Eng Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Status: ✅ Done
Development

No branches or pull requests

2 participants