dcrd/internal
Dave Collins f31191a8c8
rpcserver: Decouple agenda info status strings.
Currently, the getblockchainfo RPC implementation directly returns the
internal threshold state strings defined in blockchain.  This is not
ideal since it means that any changes to the internal implementation
could inadvertently change the RPC results without being noticed.

It also means that consumers of the RPC have to import the blockchain
module solely to access those constants.  Not only does that mean an
extremely heavy dependency is required just to access those constants,
the module is eventually going to be removed in favor of making the
blockchain package an internal package meaning clients will no longer
have access to it.

Consequently, this updates the getblockchaininfo RPC implementation to
decouple the agenda status strings by converting the internal blockchain
threshold state to use the new agenda status string constants defined in
the rpc/jsonrpc/types module.
2022-05-18 20:43:52 -05:00
..
fees blockchain/stake: Start v5 module dev cycle. 2022-05-08 11:47:32 -05:00
limits multi: update build tags to pref. go1.17 syntax. 2021-10-19 20:21:44 -05:00
mempool multi: Remove agenda flags from several funcs. 2022-05-08 11:47:32 -05:00
mining multi: Remove agenda flags from several funcs. 2022-05-08 11:47:32 -05:00
netsync blockchain/stake: Start v5 module dev cycle. 2022-05-08 11:47:32 -05:00
progresslog progresslog: Make header logging concurrent safe. 2021-11-23 17:24:58 -06:00
rpcserver rpcserver: Decouple agenda info status strings. 2022-05-18 20:43:52 -05:00
staging primitives: Update README.md for subsidy calcs. 2022-04-30 00:00:55 -05:00
version release: Bump for 1.8 release cycle. 2021-12-17 17:39:24 -06:00