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

Add GetStakeDifficultyResult to dcrjson so getstakedifficulty command can return more #137

Closed
wants to merge 0 commits into from

Conversation

alexlyp
Copy link
Member

@alexlyp alexlyp commented Apr 26, 2016

Now instead of the getstakedifficulty returning just the current blockheader's sbits (current stake difficulty) it will also return the calculated stake difficulty of the next block. These values will typically be the same, but when the next block is a stake diff readjust users will see what the upcoming stake diff will be.

// GetStakeDifficultyResult models the data returned from the
// getstakedifficulty command.
type GetStakeDifficultyResult struct {
CurrentStakeDifficulty float64 `json:"currentstakediff"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe just make these "Current" and "Next", the user should know they're a response to the original command

@jrick
Copy link
Member

jrick commented Apr 26, 2016

rpc help needs regen.

edit: nvm. was thinking this was wallet. dcrd creates the help dynamically.

@cjepson
Copy link
Contributor

cjepson commented Apr 28, 2016

Squash and OK to merge

@jcvernaleo
Copy link
Member

This PR was merged in and only marked as closed rather than merged since github doesn't offer that useful and obvious option to mark it as such manually.

@alexlyp alexlyp deleted the ayp_getstakediff branch May 2, 2016 20:49
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.

4 participants