Branch: refs/heads/master
  Home:   https://github.com/conformal/btcws
  Commit: 2731634dda1557cb22a7ae3b335ca4b31b8e03a1
      
https://github.com/conformal/btcws/commit/2731634dda1557cb22a7ae3b335ca4b31b8e03a1
  Author: Josh Rickmar <[email protected]>
  Date:   2013-12-13 (Fri, 13 Dec 2013)

  Changed paths:
    M notifications.go
    A notifications_test.go
    A test_coverage.txt

  Log Message:
  -----------
  Implement notifications that actually follow the JSON-RPC spec.

This changes notifications to JSON-RPC Requests, rather than
Responses, that also satisify the btcjson.Cmd interface and are
registered with btcjson's parser.  This prevents issues where JSON-RPC
Response IDs clash due to a client using the same ID as what an old
notification used.

As this changes the API, and thus, requires notification handlers to
be modified, the remaining missing notifications used by btcwallet
have been implemented.  Applications parsing these notifications, such
as btcgui, can now use a common handler function signature for all
notifications.

Test coverage for all notifications has been added (excluding testing
for badly-marshaled notifications with wrong numbers of parameters, or
wrong types).

Fixes #2.


Reply via email to