dcrd/internal/rpcserver
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
..
testdata rpcserver: Add handleSearchRawTransactions tests. 2020-08-29 22:03:04 -05:00
doc.go rpcserver: Move to internal. 2020-07-24 23:29:59 -05:00
interface.go multi: Consolidate header proof logic. 2022-05-14 17:28:50 -05:00
log.go rpcserver: Add logging to internal package. 2019-10-24 21:37:27 -05:00
README.md rpcserver: Move to internal. 2020-07-24 23:29:59 -05:00
rpcserver_test.go rpcserver: Fix websocket auth failure. 2022-02-09 13:53:16 -06:00
rpcserver.go rpcserver: Decouple agenda info status strings. 2022-05-18 20:43:52 -05:00
rpcserverhandlers_test.go multi: Consolidate header proof logic. 2022-05-14 17:28:50 -05:00
rpcserverhelp_test.go rpcserver: add handleVersion, handleHelp rpc tests. 2021-01-16 18:52:34 -06:00
rpcserverhelp.go rpcserver: Remove notifyspentandmissedtickets RPC. 2022-04-30 00:16:25 -05:00
rpcwebsocket.go multi: Remove agenda flags from several funcs. 2022-05-08 11:47:32 -05:00
treasury_test.go blockchain/stake: Start v5 module dev cycle. 2022-05-08 11:47:32 -05:00

rpcserver

Build Status ISC License Doc

Overview

Package rpcserver includes all RPC server interfaces, types, and pieces of code pertaining to implementing the RPC server.

License

Package rpcserver is licensed under the copyfree ISC License.