From 05a7979292c5420e3f001595fa50a4c93e37a0ca Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 14 Apr 2014 19:11:08 -0500 Subject: [PATCH] Update for notifynewtxs to notifyreceived rename. The websocket extension command to register for notifications when an address receives funds has been renamed. This commit catches up to the change. --- rpcwebsocket.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcwebsocket.go b/rpcwebsocket.go index 38a49739..6ea268c2 100644 --- a/rpcwebsocket.go +++ b/rpcwebsocket.go @@ -50,7 +50,7 @@ var wsHandlers = map[string]wsCommandHandler{ "getcurrentnet": handleGetCurrentNet, "notifyblocks": handleNotifyBlocks, "notifyallnewtxs": handleNotifyAllNewTXs, - "notifynewtxs": handleNotifyNewTXs, + "notifyreceived": handleNotifyReceived, "notifyspent": handleNotifySpent, "rescan": handleRescan, } @@ -1443,10 +1443,10 @@ func handleNotifyAllNewTXs(wsc *wsClient, icmd btcjson.Cmd) (interface{}, *btcjs return nil, nil } -// handleNotifyNewTXs implements the notifynewtxs command extension for +// handleNotifyReceived implements the notifyreceived command extension for // websocket connections. -func handleNotifyNewTXs(wsc *wsClient, icmd btcjson.Cmd) (interface{}, *btcjson.Error) { - cmd, ok := icmd.(*btcws.NotifyNewTXsCmd) +func handleNotifyReceived(wsc *wsClient, icmd btcjson.Cmd) (interface{}, *btcjson.Error) { + cmd, ok := icmd.(*btcws.NotifyReceivedCmd) if !ok { return nil, &btcjson.ErrInternal }