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

[release-v1.6] rpcserver: Correct treasury vote status handling. #2471

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Nov 23, 2020

This is a backport of #2469 to the 1.6 release branch.

This corrects several of the RPC handlers to base the status of whether
or not the decentralized treasury rules are active based on the location
of the element in question versus whatever the current tip happens to
be.

In particular, the following RPCs are corrected:

- getblock
- getblocksubsidy
- getrawtransaction
- gettxout
- rescan
- searchrawtransactions
- ticketfeeinfo
- txfeeinfo

While here, it also modifies searchrawtransaction to use the height in
the header instead of performing another lookup from chain since it is
already available there and removes a TODO that no longer applies.
@davecgh davecgh added this to the 1.6.0 milestone Nov 23, 2020
@davecgh davecgh merged commit aa248ab into decred:release-v1.6 Nov 23, 2020
@davecgh davecgh deleted the rel16_rpcserver_correct_treasury_handling branch November 23, 2020 21:05
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