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

Time based tenure extend #5530

Merged
merged 141 commits into from
Dec 9, 2024
Merged

Time based tenure extend #5530

merged 141 commits into from
Dec 9, 2024

Conversation

obycode
Copy link
Contributor

@obycode obycode commented Dec 4, 2024

See #5476

obycode and others added 30 commits November 9, 2024 16:29
With this change, the signer will accept a tenure extend from miner N-1
when miner N wins a sortition but commits to the wrong parent tenure.
The previous design using a global singleton causes trouble in testing,
when we have multiple miners running in different threads of the same
process.
This is useful when checking the behavior during forking.
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
…lock-response

Add tenure_extend_timestamp to Block Response Accept messages
…tion

feat: add validation time to block proposal response
hstove
hstove previously approved these changes Dec 8, 2024
@obycode
Copy link
Contributor Author

obycode commented Dec 8, 2024

Failing tests all pass locally, except for tests::nakamoto_integrations::mock_mining. I'm checking on that now.

@obycode obycode dismissed stale reviews from jcnelson and hstove via 1f79b52 December 9, 2024 13:08
@obycode
Copy link
Contributor Author

obycode commented Dec 9, 2024

I pushed two changes related to mock-mining:

  1. Do not propose block when mock-mining -- this was a new problem, caused by these changes
  2. Do not broadcast the block when mock-mining -- this was an existing problem

The mock-mining test is back to being flaky now.

@jferrant jferrant self-requested a review December 9, 2024 13:49
jferrant
jferrant previously approved these changes Dec 9, 2024
@obycode obycode enabled auto-merge December 9, 2024 19:22
@obycode obycode added this pull request to the merge queue Dec 9, 2024
Merged via the queue into develop with commit 9999941 Dec 9, 2024
157 of 170 checks passed
@obycode obycode mentioned this pull request Dec 9, 2024
@obycode obycode deleted the feat/time-based-tenure-extend branch December 12, 2024 15:23
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 this pull request may close these issues.

6 participants