Branch: refs/heads/master
  Home:   https://github.com/conformal/btcws
  Commit: bfcd7f6790d7b0b2caf926d07cf1c6a760a22dc2
      
https://github.com/conformal/btcws/commit/bfcd7f6790d7b0b2caf926d07cf1c6a760a22dc2
  Author: Dave Collins <[email protected]>
  Date:   2014-04-10 (Thu, 10 Apr 2014)

  Changed paths:
    M cmds.go
    M cmds_test.go
    M notifications.go
    M test_coverage.txt

  Log Message:
  -----------
  Update for latest btcjson.RawCmd changes.

This commit modifies all of the commands and notifications to work
properly with the latest btcjson.RawCmd Params field changes.

This new approach is superior to the old method of using a []interface{}
because it means that each parameter is now unmarshalled into the expected
concrete type directly instead of whatever it happens to be in the JSON.

Since it is now preferred to use full blown structs for individual
parameters, the RescanCmd type has been changed to use a new OutPoint
that can be used directly for marshalling and unmarshalling instead of a
*btcwire.OutPoint.

Also, all of the MarshalJSON functions now make use of the new
btcjson.NewRawCmd function rather than repeating the same common field
over and over and all of the MarshalJSON, UnmarshalJSON, and parseX
functions have been made more consistent.

ok @jrick


Reply via email to