Commit graph

9 commits

Author SHA1 Message Date
Dave Collins b046f36c72 Relicense to the btcsuite developers. 2015-05-01 12:03:51 -05:00
Dave Collins 9ca93b30ad Update to make use of latest version of btcjson.
This commit contains several changes needed to update the client to use
the latest version of btcjson.  In addition, it contains a couple of other
minor changes along the way.

While the underlying changes are quite large, the public API of this
package is still the same, so caller should generally not have to update
their code due to that.  However, the underlying btcjson package API has
changed significantly.  Since this package hides the vast majority of that
from callers, it should not afffect them very much.  However, one area in
particular to watch out for is that the old btcjson.Error is now
btcjson.RPCError, so any callers doing any type assertions there will need
to update.

The following is a summary of the changes:

- The underlying btcjson significantly changed how commands work, so the
  internals of this package have been reworked to be based off of requests
  instead of the now non-existant btcjson.Cmd interface
- Update all call sites of btcjson.New<Foo>Cmd since they can no longer
  error or take varargs
- The ids for each request are part of the request now instead of the
  command to match the new btcjson model and are strict uint64s so type
  assertions are no longer needed (slightly improved efficiency)
- Remove the old temporary workaround for the getbalance command with an
  account of "*" since btcwallet has since been fixed
- Change all instances of JSONToAmount to btcutil.NewAmount since that
  function was removed in favor of btcutil.Amount
- Change all btcws invocations to btcjson since they have been combined
2015-04-05 22:56:39 -05:00
Dave Collins bc36ac6d52 Update btcd import paths to new location. 2015-01-17 01:18:22 -06:00
Dave Collins 04f541082a Update btcwallet import paths to new location. 2015-01-17 00:30:49 -06:00
Dave Collins 7eea8252a4 Add the new example to README.md and doc.go. 2014-06-05 20:58:47 -05:00
kargakis a785ef6424 minor syntax fixes 2014-06-02 17:31:02 +03:00
Dave Collins 0fc9504da4 Improve overview in doc.go. 2014-05-10 02:50:19 -05:00
Dave Collins f54e05c8fe Initial package overview documentation. 2014-05-09 20:12:47 -05:00
Dave Collins e3f130ade5 Initial commit. 2014-05-07 11:14:39 -05:00