dcrd/internal
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
..
fees fees: Remove deprecated DisableLog. 2020-12-28 13:13:47 -06:00
limits multi: replace godoc.org with pkg.go.dev 2020-02-18 19:35:19 -06:00
mempool txscript: Convert to use new stdaddr package. 2021-04-12 01:38:08 -05:00
mining txscript: Convert to use new stdaddr package. 2021-04-12 01:38:08 -05:00
netsync netsync: Use an APBF for recently rejected txns. 2021-02-13 01:41:27 -06:00
progresslog multi: Add chain verify progress percentage. 2021-01-21 23:30:35 -06:00
rpcserver rpcserver: Allow gettreasurybalance empty blk str. 2021-04-27 13:02:07 -05:00
version release: Bump for 1.7 release cycle. 2020-10-15 16:30:33 -05:00