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

Include tenure_height in /new_block event payload #5333

Merged
merged 6 commits into from
Oct 19, 2024

Conversation

zone117x
Copy link
Member

@zone117x zone117x commented Oct 18, 2024

Closes #5318

Part of hirosystems/explorer#1624 and hirosystems/stacks-blockchain-api#2124

Adds a tenure_height (AKA coinbase_height) to the /new_block event payload.

In epoch2.x this is the same value as block_height.

@zone117x zone117x requested a review from a team as a code owner October 18, 2024 14:41
@zone117x zone117x linked an issue Oct 18, 2024 that may be closed by this pull request
jcnelson
jcnelson previously approved these changes Oct 18, 2024
Copy link
Contributor

@hstove hstove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't fully reviewed this, but I don't think that integration test is a good place for this, because there aren't any nakamoto blocks (ie without TenureChange) produced. check_block_info might be a better place for this - just basically take the same assertions you have and move them to the end of that test?

@zone117x zone117x removed the request for review from obycode October 18, 2024 20:27
@zone117x zone117x added this pull request to the merge queue Oct 18, 2024
Copy link
Contributor

@hstove hstove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Merged via the queue into develop with commit 76b3094 Oct 19, 2024
130 checks passed
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Oct 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tenure-height to /new_block event payload
5 participants