Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: 7b849ef3eb0830ccffe7999fdf6ec9980b5cd8d2
      
https://github.com/btcsuite/btcd/commit/7b849ef3eb0830ccffe7999fdf6ec9980b5cd8d2
  Author: Dave Collins <[email protected]>
  Date:   2015-02-24 (Tue, 24 Feb 2015)

  Changed paths:
    M rpcserver.go
    M rpcwebsocket.go

  Log Message:
  -----------
  Improve internal RPC server function order.

This commit reorders the RPC server code to more closely match the
ordering used by the rest of the code base such that functions are
typically defined before they are used and near their call site.


  Commit: c0c48e0efd596937d14d9c65ffe32552b98d541c
      
https://github.com/btcsuite/btcd/commit/c0c48e0efd596937d14d9c65ffe32552b98d541c
  Author: Dave Collins <[email protected]>
  Date:   2015-02-24 (Tue, 24 Feb 2015)

  Changed paths:
    M rpcserver.go

  Log Message:
  -----------
  Improve a couple of JSON-RPC server err conditions.

- When invalid HTTP Basic Access Authentication details are provided to
  the websocket endpoint, return a WWW-Authenticate header just like the
  non-websocket endpoint
- When a connection to the websocket endpoint fails to properly upgrade,
  return a 400 Bad Request HTTP error status code


  Commit: 637fbcadecdb61abe78e6652ddad71297c6bf5df
      
https://github.com/btcsuite/btcd/commit/637fbcadecdb61abe78e6652ddad71297c6bf5df
  Author: Dave Collins <[email protected]>
  Date:   2015-02-24 (Tue, 24 Feb 2015)

  Changed paths:
    M btcjson/v2/btcjson/chainsvrcmds.go
    M rpcserver.go
    A rpcserverhelp.go
    A rpcserverhelp_test.go
    M rpcwebsocket.go
    M server.go

  Log Message:
  -----------
  rpcserver: Convert to make use of new btcjson.

This commit converts the RPC server over to use the new features available
in the latest version of btcjson and improve a few things along the way.
This following summarizes the changes:

- All btcjson imports have been updated to the latest package version
- The help has been significantly improved
  - Invoking help with no command specified now provides an alphabetized
    list of all supported commands along with one-line usage
  - The help for each command is automatically generated and provides much
    more explicit information such as the type of each parameter, whether
    or not it's optional or required, etc
  - The websocket-specific commands are now provided when accessing the
    help when connected via websockets
  - Help has been added for all websocket-specific commands and is only
    accessible when connected via websockets
- The error returns and handling of both the standard and websocket
  handlers has been made consistent
- All RPC errors have been converted to the new RPCError type
- Various variables have been renamed for consistency
- Several RPC errors have been improved
- The commands that are marked as unimplemented have been moved into the
  separate map where they belong
- Several comments have been improved
- An unnecessary check has been removed from the createrawtransaction
  handler
- The command parsing has been restructured a bit to pave the way for
  JSON-RPC 2.0 batching support


Compare: https://github.com/btcsuite/btcd/compare/5a4312d9ca27...637fbcadecdb

Reply via email to