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

stdaddr: Accept vote and revoke limits separately. #2624

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Mar 16, 2021

This is rebased on #2619.

This modifies the RewardCommitmentScript method of the StakeAddress interface to accept the vote and revoke fee limits separately instead of expecting the caller to have already encoded it properly.

This simplifies the creation of the reward commitment script since there is not currently any other method available anywhere to independently encode the limits properly and it is not a particularly trivial encoding.

Finally, the tests and example are updated accordingly.

@davecgh davecgh added this to the 1.7.0 milestone Mar 16, 2021
@davecgh davecgh force-pushed the stdaddr_calc_limits_in_reward_cmt_script branch from d408079 to dff23ee Compare March 17, 2021 18:15
This modifies the RewardCommitmentScript method of the StakeAddress
interface to accept the vote and revoke fee limits separately instead of
expecting the caller to have already encoded it properly.

This simplifies the creation of the reward commitment script since there
is not currently any other method available anywhere to independently
encode the limits properly and it is not a particularly trivial
encoding.

Finally, the tests and example are updated accordingly.
@davecgh davecgh force-pushed the stdaddr_calc_limits_in_reward_cmt_script branch from dff23ee to a2366e6 Compare March 30, 2021 07:00
@davecgh davecgh merged commit a2366e6 into decred:master Mar 30, 2021
@davecgh davecgh deleted the stdaddr_calc_limits_in_reward_cmt_script branch March 30, 2021 16:48
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.

None yet

3 participants