dcrd/internal/rpcserver
Jonathan Chappelow 0b39e530e7
rpcserver: Allow gettreasurybalance empty blk str.
When an empty string is provided for the optional block hash argument,
this should be treated as if it were omitted rather than the zero hash,
which is an invalid block.

This changes handleGetTreasuryBalance to treat "" like nil. This change
is consistent with how handleGetTreasurySpendVotes handles its optional
block argument.

The tests for both gettreasurybalance and gettreasuryspendvotes are
updated to ensure this behavior (existing for gettreasuryspendvotes).
2021-04-27 13:02:07 -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 rpcserver: Add median time to verbose results. 2021-04-22 11:26:10 -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: Move to internal. 2020-07-24 23:29:59 -05:00
rpcserver.go rpcserver: Allow gettreasurybalance empty blk str. 2021-04-27 13:02:07 -05:00
rpcserverhandlers_test.go rpcserver: Allow gettreasurybalance empty blk str. 2021-04-27 13:02:07 -05:00
rpcserverhelp_test.go rpcserver: add handleVersion, handleHelp rpc tests. 2021-01-16 18:52:34 -06:00
rpcserverhelp.go rpcserver: Add median time to verbose results. 2021-04-22 11:26:10 -05:00
rpcwebsocket.go stdaddr: Replace Address method with String 2021-04-15 16:51:33 -05:00
treasury_test.go rpcserver: Convert to use new stdaddr package. 2021-04-09 13:39:19 -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.