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

feat/SIP-029 #5461

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from
Draft

feat/SIP-029 #5461

wants to merge 6 commits into from

Conversation

jcnelson
Copy link
Member

This PR implements the proposed emissions schedule in SIP-029. It does so by way of introducing StacksEpochId::Epoch31, and all of the necessary changes therein (e.g. block-commit memo bump, peer version bump, etc.).

This PR moves the coinbase calculation logic into StacksEpochId, and out of StacksChainState. This is done to make epoch-gating slightly easier. It also adds a means by which unit and integration tests can override the coinbase schedule, which will allow us to test it on a shorter timescale with confidence.

I'm opening this against develop because it's backwards-compatible. The rules don't go into effect until Bitcoin height 875,000.

I'm leaving this as a draft until I can get an integration test in place which tests the new coinbase emissions logic.

@jcnelson
Copy link
Member Author

N.B. This will require a block replay test to verify that it works. A genesis sync may be overkill.

@will-corcoran
Copy link
Contributor

This PR will be noted in the "Reference Implementation" section of SIP-029 (here)

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.

2 participants