Skip to content

Commit

Permalink
[release-v1.6] rpcserver: Correct treasury vote status handling.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
davecgh committed Nov 23, 2020
1 parent b451bf4 commit aa248ab
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 100 deletions.

0 comments on commit aa248ab

Please sign in to comment.