From b90c6c61ba31ca1328aa99ac6f3681177945b800 Mon Sep 17 00:00:00 2001 From: Josh Rickmar <jrick@conformal.com> Date: Fri, 17 Jan 2014 18:38:26 -0500 Subject: [PATCH] Fix previous. --- cmds.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmds.go b/cmds.go index 4ba9366a..04688e14 100644 --- a/cmds.go +++ b/cmds.go @@ -20,7 +20,7 @@ func init() { btcjson.RegisterCustomCmd("getunconfirmedbalance", parseGetUnconfirmedBalanceCmd) btcjson.RegisterCustomCmd("listaddresstransactions", parseListAddressTransactionsCmd) btcjson.RegisterCustomCmd("listalltransactions", parseListAllTransactionsCmd) - btcjson.RegisterCustomCmd("notifyblocks", parseNotifyBlocks) + btcjson.RegisterCustomCmd("notifyblocks", parseNotifyBlocksCmd) btcjson.RegisterCustomCmd("notifynewtxs", parseNotifyNewTXsCmd) btcjson.RegisterCustomCmd("notifyspent", parseNotifySpentCmd) btcjson.RegisterCustomCmd("rescan", parseRescanCmd) @@ -426,10 +426,10 @@ func NewNotifyBlocksCmd(id interface{}) *NotifyBlocksCmd { } } -// parseNotifyBlocks parses a NotifyBlocksCmd into a concrete type +// parseNotifyBlocksCmd parses a NotifyBlocksCmd into a concrete type // satisifying the btcjson.Cmd interface. This is used when registering // the custom command with the btcjson parser. -func parseNotifyBlocks(r *btcjson.RawCmd) (btcjson.Cmd, error) { +func parseNotifyBlocksCmd(r *btcjson.RawCmd) (btcjson.Cmd, error) { if len(r.Params) != 0 { return nil, btcjson.ErrWrongNumberOfParams } @@ -472,7 +472,7 @@ func (cmd *NotifyBlocksCmd) UnmarshalJSON(b []byte) error { return err } - newCmd, err := parseNotifyNewTXsCmd(&r) + newCmd, err := parseNotifyBlocksCmd(&r) if err != nil { return err }