Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: 28269d2598ae7aff614f6d458561ddf88b3263ae
https://github.com/btcsuite/btcd/commit/28269d2598ae7aff614f6d458561ddf88b3263ae
Author: Dave Collins <[email protected]>
Date: 2015-02-28 (Sat, 28 Feb 2015)
Changed paths:
M rpcserver.go
Log Message:
-----------
rpcserver: Use default values for getnetworkhashps.
When the fields in the command for the getnetworkhashps RPC don't have the
fields set, use the intended default values.
Since the btcjson package sets these fields to the default values when a
command is unmarshaled from the wire, this typically isn't necessary.
However, when the RPC server calls the handler internally with optional
command fields set to nil, as is the case in getmininginfo, the defaults
need to be set as well.