Skip to content

Conversation

@diwakergupta
Copy link
Contributor

No description provided.

period `x` less than 12000 blocks, then the signed message is only valid for
Stacking participation for `floor(x / 1000)` reward cycles (the minimum
participation length is one cycle: 1000 blocks).
These signed messages are valid for at most 12 reward cycles (24000 Bitcoin
Copy link
Member

Choose a reason for hiding this comment

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

Reward cycles are 2100 blocks long. This is 25200 blocks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going by the convention in the original text: when the cycle was 1000 blocks, prepare phase was 240 blocks I believe. So technically original text should have used cycle length of 1240 blocks. However, my understanding is that prepare phase of the next cycle overlaps with the reward phase of the current cycle, so the "effective" cycle length was 1000 previously, and should be 2000 now.

Happy to change the convention once @kantai confirms.

Copy link
Contributor

Choose a reason for hiding this comment

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

The reward phase and prepare phase no longer overlap -- which means that each "cycle" is 2100 blocks. While the "effective" reward phase is 2000 blocks, the maximum length of a lockup is 12 * 2100 Stacks blocks (25,200).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I figured with prepare phase being PoB for #1805 they can no longer overlap. Will update, thanks!

Copy link
Contributor

@kantai kantai left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@jcnelson jcnelson left a comment

Choose a reason for hiding this comment

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

LGTM!

@diwakergupta diwakergupta merged commit 2595ba1 into master Dec 30, 2020
@diwakergupta diwakergupta deleted the chore/sip-007 branch December 30, 2020 02:26
@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 Nov 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.

5 participants