btcjson,rpcclient: use proper Deprecated comment format

This makes godoc and other Go tools understand deprecation notice.

Found using https://go-critic.github.io/overview#deprecatedComment-ref
This commit is contained in:
Iskander Sharipov 2018-09-14 00:13:06 +03:00 committed by John C. Vernaleo
parent c4f39996ac
commit d9ce6b037f
3 changed files with 45 additions and 45 deletions

View file

@ -80,7 +80,7 @@ func NewStopNotifyNewTransactionsCmd() *StopNotifyNewTransactionsCmd {
// NotifyReceivedCmd defines the notifyreceived JSON-RPC command. // NotifyReceivedCmd defines the notifyreceived JSON-RPC command.
// //
// NOTE: Deprecated. Use LoadTxFilterCmd instead. // Deprecated: Use LoadTxFilterCmd instead.
type NotifyReceivedCmd struct { type NotifyReceivedCmd struct {
Addresses []string Addresses []string
} }
@ -88,7 +88,7 @@ type NotifyReceivedCmd struct {
// NewNotifyReceivedCmd returns a new instance which can be used to issue a // NewNotifyReceivedCmd returns a new instance which can be used to issue a
// notifyreceived JSON-RPC command. // notifyreceived JSON-RPC command.
// //
// NOTE: Deprecated. Use NewLoadTxFilterCmd instead. // Deprecated: Use NewLoadTxFilterCmd instead.
func NewNotifyReceivedCmd(addresses []string) *NotifyReceivedCmd { func NewNotifyReceivedCmd(addresses []string) *NotifyReceivedCmd {
return &NotifyReceivedCmd{ return &NotifyReceivedCmd{
Addresses: addresses, Addresses: addresses,
@ -128,7 +128,7 @@ func NewLoadTxFilterCmd(reload bool, addresses []string, outPoints []OutPoint) *
// NotifySpentCmd defines the notifyspent JSON-RPC command. // NotifySpentCmd defines the notifyspent JSON-RPC command.
// //
// NOTE: Deprecated. Use LoadTxFilterCmd instead. // Deprecated: Use LoadTxFilterCmd instead.
type NotifySpentCmd struct { type NotifySpentCmd struct {
OutPoints []OutPoint OutPoints []OutPoint
} }
@ -136,7 +136,7 @@ type NotifySpentCmd struct {
// NewNotifySpentCmd returns a new instance which can be used to issue a // NewNotifySpentCmd returns a new instance which can be used to issue a
// notifyspent JSON-RPC command. // notifyspent JSON-RPC command.
// //
// NOTE: Deprecated. Use NewLoadTxFilterCmd instead. // Deprecated: Use NewLoadTxFilterCmd instead.
func NewNotifySpentCmd(outPoints []OutPoint) *NotifySpentCmd { func NewNotifySpentCmd(outPoints []OutPoint) *NotifySpentCmd {
return &NotifySpentCmd{ return &NotifySpentCmd{
OutPoints: outPoints, OutPoints: outPoints,
@ -145,7 +145,7 @@ func NewNotifySpentCmd(outPoints []OutPoint) *NotifySpentCmd {
// StopNotifyReceivedCmd defines the stopnotifyreceived JSON-RPC command. // StopNotifyReceivedCmd defines the stopnotifyreceived JSON-RPC command.
// //
// NOTE: Deprecated. Use LoadTxFilterCmd instead. // Deprecated: Use LoadTxFilterCmd instead.
type StopNotifyReceivedCmd struct { type StopNotifyReceivedCmd struct {
Addresses []string Addresses []string
} }
@ -153,7 +153,7 @@ type StopNotifyReceivedCmd struct {
// NewStopNotifyReceivedCmd returns a new instance which can be used to issue a // NewStopNotifyReceivedCmd returns a new instance which can be used to issue a
// stopnotifyreceived JSON-RPC command. // stopnotifyreceived JSON-RPC command.
// //
// NOTE: Deprecated. Use NewLoadTxFilterCmd instead. // Deprecated: Use NewLoadTxFilterCmd instead.
func NewStopNotifyReceivedCmd(addresses []string) *StopNotifyReceivedCmd { func NewStopNotifyReceivedCmd(addresses []string) *StopNotifyReceivedCmd {
return &StopNotifyReceivedCmd{ return &StopNotifyReceivedCmd{
Addresses: addresses, Addresses: addresses,
@ -162,7 +162,7 @@ func NewStopNotifyReceivedCmd(addresses []string) *StopNotifyReceivedCmd {
// StopNotifySpentCmd defines the stopnotifyspent JSON-RPC command. // StopNotifySpentCmd defines the stopnotifyspent JSON-RPC command.
// //
// NOTE: Deprecated. Use LoadTxFilterCmd instead. // Deprecated: Use LoadTxFilterCmd instead.
type StopNotifySpentCmd struct { type StopNotifySpentCmd struct {
OutPoints []OutPoint OutPoints []OutPoint
} }
@ -170,7 +170,7 @@ type StopNotifySpentCmd struct {
// NewStopNotifySpentCmd returns a new instance which can be used to issue a // NewStopNotifySpentCmd returns a new instance which can be used to issue a
// stopnotifyspent JSON-RPC command. // stopnotifyspent JSON-RPC command.
// //
// NOTE: Deprecated. Use NewLoadTxFilterCmd instead. // Deprecated: Use NewLoadTxFilterCmd instead.
func NewStopNotifySpentCmd(outPoints []OutPoint) *StopNotifySpentCmd { func NewStopNotifySpentCmd(outPoints []OutPoint) *StopNotifySpentCmd {
return &StopNotifySpentCmd{ return &StopNotifySpentCmd{
OutPoints: outPoints, OutPoints: outPoints,
@ -179,7 +179,7 @@ func NewStopNotifySpentCmd(outPoints []OutPoint) *StopNotifySpentCmd {
// RescanCmd defines the rescan JSON-RPC command. // RescanCmd defines the rescan JSON-RPC command.
// //
// NOTE: Deprecated. Use RescanBlocksCmd instead. // Deprecated: Use RescanBlocksCmd instead.
type RescanCmd struct { type RescanCmd struct {
BeginBlock string BeginBlock string
Addresses []string Addresses []string
@ -193,7 +193,7 @@ type RescanCmd struct {
// The parameters which are pointers indicate they are optional. Passing nil // The parameters which are pointers indicate they are optional. Passing nil
// for optional parameters will use the default value. // for optional parameters will use the default value.
// //
// NOTE: Deprecated. Use NewRescanBlocksCmd instead. // Deprecated: Use NewRescanBlocksCmd instead.
func NewRescanCmd(beginBlock string, addresses []string, outPoints []OutPoint, endBlock *string) *RescanCmd { func NewRescanCmd(beginBlock string, addresses []string, outPoints []OutPoint, endBlock *string) *RescanCmd {
return &RescanCmd{ return &RescanCmd{
BeginBlock: beginBlock, BeginBlock: beginBlock,

View file

@ -12,14 +12,14 @@ const (
// BlockConnectedNtfnMethod is the legacy, deprecated method used for // BlockConnectedNtfnMethod is the legacy, deprecated method used for
// notifications from the chain server that a block has been connected. // notifications from the chain server that a block has been connected.
// //
// NOTE: Deprecated. Use FilteredBlockConnectedNtfnMethod instead. // Deprecated: Use FilteredBlockConnectedNtfnMethod instead.
BlockConnectedNtfnMethod = "blockconnected" BlockConnectedNtfnMethod = "blockconnected"
// BlockDisconnectedNtfnMethod is the legacy, deprecated method used for // BlockDisconnectedNtfnMethod is the legacy, deprecated method used for
// notifications from the chain server that a block has been // notifications from the chain server that a block has been
// disconnected. // disconnected.
// //
// NOTE: Deprecated. Use FilteredBlockDisconnectedNtfnMethod instead. // Deprecated: Use FilteredBlockDisconnectedNtfnMethod instead.
BlockDisconnectedNtfnMethod = "blockdisconnected" BlockDisconnectedNtfnMethod = "blockdisconnected"
// FilteredBlockConnectedNtfnMethod is the new method used for // FilteredBlockConnectedNtfnMethod is the new method used for
@ -35,7 +35,7 @@ const (
// notifications from the chain server that a transaction which pays to // notifications from the chain server that a transaction which pays to
// a registered address has been processed. // a registered address has been processed.
// //
// NOTE: Deprecated. Use RelevantTxAcceptedNtfnMethod and // Deprecated: Use RelevantTxAcceptedNtfnMethod and
// FilteredBlockConnectedNtfnMethod instead. // FilteredBlockConnectedNtfnMethod instead.
RecvTxNtfnMethod = "recvtx" RecvTxNtfnMethod = "recvtx"
@ -43,7 +43,7 @@ const (
// notifications from the chain server that a transaction which spends a // notifications from the chain server that a transaction which spends a
// registered outpoint has been processed. // registered outpoint has been processed.
// //
// NOTE: Deprecated. Use RelevantTxAcceptedNtfnMethod and // Deprecated: Use RelevantTxAcceptedNtfnMethod and
// FilteredBlockConnectedNtfnMethod instead. // FilteredBlockConnectedNtfnMethod instead.
RedeemingTxNtfnMethod = "redeemingtx" RedeemingTxNtfnMethod = "redeemingtx"
@ -51,14 +51,14 @@ const (
// notifications from the chain server that a legacy, deprecated rescan // notifications from the chain server that a legacy, deprecated rescan
// operation has finished. // operation has finished.
// //
// NOTE: Deprecated. Not used with rescanblocks command. // Deprecated: Not used with rescanblocks command.
RescanFinishedNtfnMethod = "rescanfinished" RescanFinishedNtfnMethod = "rescanfinished"
// RescanProgressNtfnMethod is the legacy, deprecated method used for // RescanProgressNtfnMethod is the legacy, deprecated method used for
// notifications from the chain server that a legacy, deprecated rescan // notifications from the chain server that a legacy, deprecated rescan
// operation this is underway has made progress. // operation this is underway has made progress.
// //
// NOTE: Deprecated. Not used with rescanblocks command. // Deprecated: Not used with rescanblocks command.
RescanProgressNtfnMethod = "rescanprogress" RescanProgressNtfnMethod = "rescanprogress"
// TxAcceptedNtfnMethod is the method used for notifications from the // TxAcceptedNtfnMethod is the method used for notifications from the
@ -79,7 +79,7 @@ const (
// BlockConnectedNtfn defines the blockconnected JSON-RPC notification. // BlockConnectedNtfn defines the blockconnected JSON-RPC notification.
// //
// NOTE: Deprecated. Use FilteredBlockConnectedNtfn instead. // Deprecated: Use FilteredBlockConnectedNtfn instead.
type BlockConnectedNtfn struct { type BlockConnectedNtfn struct {
Hash string Hash string
Height int32 Height int32
@ -89,7 +89,7 @@ type BlockConnectedNtfn struct {
// NewBlockConnectedNtfn returns a new instance which can be used to issue a // NewBlockConnectedNtfn returns a new instance which can be used to issue a
// blockconnected JSON-RPC notification. // blockconnected JSON-RPC notification.
// //
// NOTE: Deprecated. Use NewFilteredBlockConnectedNtfn instead. // Deprecated: Use NewFilteredBlockConnectedNtfn instead.
func NewBlockConnectedNtfn(hash string, height int32, time int64) *BlockConnectedNtfn { func NewBlockConnectedNtfn(hash string, height int32, time int64) *BlockConnectedNtfn {
return &BlockConnectedNtfn{ return &BlockConnectedNtfn{
Hash: hash, Hash: hash,
@ -100,7 +100,7 @@ func NewBlockConnectedNtfn(hash string, height int32, time int64) *BlockConnecte
// BlockDisconnectedNtfn defines the blockdisconnected JSON-RPC notification. // BlockDisconnectedNtfn defines the blockdisconnected JSON-RPC notification.
// //
// NOTE: Deprecated. Use FilteredBlockDisconnectedNtfn instead. // Deprecated: Use FilteredBlockDisconnectedNtfn instead.
type BlockDisconnectedNtfn struct { type BlockDisconnectedNtfn struct {
Hash string Hash string
Height int32 Height int32
@ -110,7 +110,7 @@ type BlockDisconnectedNtfn struct {
// NewBlockDisconnectedNtfn returns a new instance which can be used to issue a // NewBlockDisconnectedNtfn returns a new instance which can be used to issue a
// blockdisconnected JSON-RPC notification. // blockdisconnected JSON-RPC notification.
// //
// NOTE: Deprecated. Use NewFilteredBlockDisconnectedNtfn instead. // Deprecated: Use NewFilteredBlockDisconnectedNtfn instead.
func NewBlockDisconnectedNtfn(hash string, height int32, time int64) *BlockDisconnectedNtfn { func NewBlockDisconnectedNtfn(hash string, height int32, time int64) *BlockDisconnectedNtfn {
return &BlockDisconnectedNtfn{ return &BlockDisconnectedNtfn{
Hash: hash, Hash: hash,
@ -163,7 +163,7 @@ type BlockDetails struct {
// RecvTxNtfn defines the recvtx JSON-RPC notification. // RecvTxNtfn defines the recvtx JSON-RPC notification.
// //
// NOTE: Deprecated. Use RelevantTxAcceptedNtfn and FilteredBlockConnectedNtfn // Deprecated: Use RelevantTxAcceptedNtfn and FilteredBlockConnectedNtfn
// instead. // instead.
type RecvTxNtfn struct { type RecvTxNtfn struct {
HexTx string HexTx string
@ -173,7 +173,7 @@ type RecvTxNtfn struct {
// NewRecvTxNtfn returns a new instance which can be used to issue a recvtx // NewRecvTxNtfn returns a new instance which can be used to issue a recvtx
// JSON-RPC notification. // JSON-RPC notification.
// //
// NOTE: Deprecated. Use NewRelevantTxAcceptedNtfn and // Deprecated: Use NewRelevantTxAcceptedNtfn and
// NewFilteredBlockConnectedNtfn instead. // NewFilteredBlockConnectedNtfn instead.
func NewRecvTxNtfn(hexTx string, block *BlockDetails) *RecvTxNtfn { func NewRecvTxNtfn(hexTx string, block *BlockDetails) *RecvTxNtfn {
return &RecvTxNtfn{ return &RecvTxNtfn{
@ -184,7 +184,7 @@ func NewRecvTxNtfn(hexTx string, block *BlockDetails) *RecvTxNtfn {
// RedeemingTxNtfn defines the redeemingtx JSON-RPC notification. // RedeemingTxNtfn defines the redeemingtx JSON-RPC notification.
// //
// NOTE: Deprecated. Use RelevantTxAcceptedNtfn and FilteredBlockConnectedNtfn // Deprecated: Use RelevantTxAcceptedNtfn and FilteredBlockConnectedNtfn
// instead. // instead.
type RedeemingTxNtfn struct { type RedeemingTxNtfn struct {
HexTx string HexTx string
@ -194,7 +194,7 @@ type RedeemingTxNtfn struct {
// NewRedeemingTxNtfn returns a new instance which can be used to issue a // NewRedeemingTxNtfn returns a new instance which can be used to issue a
// redeemingtx JSON-RPC notification. // redeemingtx JSON-RPC notification.
// //
// NOTE: Deprecated. Use NewRelevantTxAcceptedNtfn and // Deprecated: Use NewRelevantTxAcceptedNtfn and
// NewFilteredBlockConnectedNtfn instead. // NewFilteredBlockConnectedNtfn instead.
func NewRedeemingTxNtfn(hexTx string, block *BlockDetails) *RedeemingTxNtfn { func NewRedeemingTxNtfn(hexTx string, block *BlockDetails) *RedeemingTxNtfn {
return &RedeemingTxNtfn{ return &RedeemingTxNtfn{
@ -205,7 +205,7 @@ func NewRedeemingTxNtfn(hexTx string, block *BlockDetails) *RedeemingTxNtfn {
// RescanFinishedNtfn defines the rescanfinished JSON-RPC notification. // RescanFinishedNtfn defines the rescanfinished JSON-RPC notification.
// //
// NOTE: Deprecated. Not used with rescanblocks command. // Deprecated: Not used with rescanblocks command.
type RescanFinishedNtfn struct { type RescanFinishedNtfn struct {
Hash string Hash string
Height int32 Height int32
@ -215,7 +215,7 @@ type RescanFinishedNtfn struct {
// NewRescanFinishedNtfn returns a new instance which can be used to issue a // NewRescanFinishedNtfn returns a new instance which can be used to issue a
// rescanfinished JSON-RPC notification. // rescanfinished JSON-RPC notification.
// //
// NOTE: Deprecated. Not used with rescanblocks command. // Deprecated: Not used with rescanblocks command.
func NewRescanFinishedNtfn(hash string, height int32, time int64) *RescanFinishedNtfn { func NewRescanFinishedNtfn(hash string, height int32, time int64) *RescanFinishedNtfn {
return &RescanFinishedNtfn{ return &RescanFinishedNtfn{
Hash: hash, Hash: hash,
@ -226,7 +226,7 @@ func NewRescanFinishedNtfn(hash string, height int32, time int64) *RescanFinishe
// RescanProgressNtfn defines the rescanprogress JSON-RPC notification. // RescanProgressNtfn defines the rescanprogress JSON-RPC notification.
// //
// NOTE: Deprecated. Not used with rescanblocks command. // Deprecated: Not used with rescanblocks command.
type RescanProgressNtfn struct { type RescanProgressNtfn struct {
Hash string Hash string
Height int32 Height int32
@ -236,7 +236,7 @@ type RescanProgressNtfn struct {
// NewRescanProgressNtfn returns a new instance which can be used to issue a // NewRescanProgressNtfn returns a new instance which can be used to issue a
// rescanprogress JSON-RPC notification. // rescanprogress JSON-RPC notification.
// //
// NOTE: Deprecated. Not used with rescanblocks command. // Deprecated: Not used with rescanblocks command.
func NewRescanProgressNtfn(hash string, height int32, time int64) *RescanProgressNtfn { func NewRescanProgressNtfn(hash string, height int32, time int64) *RescanProgressNtfn {
return &RescanProgressNtfn{ return &RescanProgressNtfn{
Hash: hash, Hash: hash,

View file

@ -95,7 +95,7 @@ type NotificationHandlers struct {
// NotifyBlocks has been made to register for the notification and the // NotifyBlocks has been made to register for the notification and the
// function is non-nil. // function is non-nil.
// //
// NOTE: Deprecated. Use OnFilteredBlockConnected instead. // Deprecated: Use OnFilteredBlockConnected instead.
OnBlockConnected func(hash *chainhash.Hash, height int32, t time.Time) OnBlockConnected func(hash *chainhash.Hash, height int32, t time.Time)
// OnFilteredBlockConnected is invoked when a block is connected to the // OnFilteredBlockConnected is invoked when a block is connected to the
@ -111,7 +111,7 @@ type NotificationHandlers struct {
// NotifyBlocks has been made to register for the notification and the // NotifyBlocks has been made to register for the notification and the
// function is non-nil. // function is non-nil.
// //
// NOTE: Deprecated. Use OnFilteredBlockDisconnected instead. // Deprecated: Use OnFilteredBlockDisconnected instead.
OnBlockDisconnected func(hash *chainhash.Hash, height int32, t time.Time) OnBlockDisconnected func(hash *chainhash.Hash, height int32, t time.Time)
// OnFilteredBlockDisconnected is invoked when a block is disconnected // OnFilteredBlockDisconnected is invoked when a block is disconnected
@ -127,7 +127,7 @@ type NotificationHandlers struct {
// preceding call to NotifyReceived, Rescan, or RescanEndHeight has been // preceding call to NotifyReceived, Rescan, or RescanEndHeight has been
// made to register for the notification and the function is non-nil. // made to register for the notification and the function is non-nil.
// //
// NOTE: Deprecated. Use OnRelevantTxAccepted instead. // Deprecated: Use OnRelevantTxAccepted instead.
OnRecvTx func(transaction *btcutil.Tx, details *btcjson.BlockDetails) OnRecvTx func(transaction *btcutil.Tx, details *btcjson.BlockDetails)
// OnRedeemingTx is invoked when a transaction that spends a registered // OnRedeemingTx is invoked when a transaction that spends a registered
@ -141,7 +141,7 @@ type NotificationHandlers struct {
// funds to the registered addresses. This means it is possible for // funds to the registered addresses. This means it is possible for
// this to invoked indirectly as the result of a NotifyReceived call. // this to invoked indirectly as the result of a NotifyReceived call.
// //
// NOTE: Deprecated. Use OnRelevantTxAccepted instead. // Deprecated: Use OnRelevantTxAccepted instead.
OnRedeemingTx func(transaction *btcutil.Tx, details *btcjson.BlockDetails) OnRedeemingTx func(transaction *btcutil.Tx, details *btcjson.BlockDetails)
// OnRelevantTxAccepted is invoked when an unmined transaction passes // OnRelevantTxAccepted is invoked when an unmined transaction passes
@ -157,14 +157,14 @@ type NotificationHandlers struct {
// result of a rescan request, due to how btcd may send various rescan // result of a rescan request, due to how btcd may send various rescan
// notifications after the rescan request has already returned. // notifications after the rescan request has already returned.
// //
// NOTE: Deprecated. Not used with RescanBlocks. // Deprecated: Not used with RescanBlocks.
OnRescanFinished func(hash *chainhash.Hash, height int32, blkTime time.Time) OnRescanFinished func(hash *chainhash.Hash, height int32, blkTime time.Time)
// OnRescanProgress is invoked periodically when a rescan is underway. // OnRescanProgress is invoked periodically when a rescan is underway.
// It will only be invoked if a preceding call to Rescan or // It will only be invoked if a preceding call to Rescan or
// RescanEndHeight has been made and the function is non-nil. // RescanEndHeight has been made and the function is non-nil.
// //
// NOTE: Deprecated. Not used with RescanBlocks. // Deprecated: Not used with RescanBlocks.
OnRescanProgress func(hash *chainhash.Hash, height int32, blkTime time.Time) OnRescanProgress func(hash *chainhash.Hash, height int32, blkTime time.Time)
// OnTxAccepted is invoked when a transaction is accepted into the // OnTxAccepted is invoked when a transaction is accepted into the
@ -905,7 +905,7 @@ func (c *Client) NotifyBlocks() error {
// FutureNotifySpentResult is a future promise to deliver the result of a // FutureNotifySpentResult is a future promise to deliver the result of a
// NotifySpentAsync RPC invocation (or an applicable error). // NotifySpentAsync RPC invocation (or an applicable error).
// //
// NOTE: Deprecated. Use FutureLoadTxFilterResult instead. // Deprecated: Use FutureLoadTxFilterResult instead.
type FutureNotifySpentResult chan *response type FutureNotifySpentResult chan *response
// Receive waits for the response promised by the future and returns an error // Receive waits for the response promised by the future and returns an error
@ -951,7 +951,7 @@ func newOutPointFromWire(op *wire.OutPoint) btcjson.OutPoint {
// //
// NOTE: This is a btcd extension and requires a websocket connection. // NOTE: This is a btcd extension and requires a websocket connection.
// //
// NOTE: Deprecated. Use LoadTxFilterAsync instead. // Deprecated: Use LoadTxFilterAsync instead.
func (c *Client) NotifySpentAsync(outpoints []*wire.OutPoint) FutureNotifySpentResult { func (c *Client) NotifySpentAsync(outpoints []*wire.OutPoint) FutureNotifySpentResult {
// Not supported in HTTP POST mode. // Not supported in HTTP POST mode.
if c.config.HTTPPostMode { if c.config.HTTPPostMode {
@ -983,7 +983,7 @@ func (c *Client) NotifySpentAsync(outpoints []*wire.OutPoint) FutureNotifySpentR
// //
// NOTE: This is a btcd extension and requires a websocket connection. // NOTE: This is a btcd extension and requires a websocket connection.
// //
// NOTE: Deprecated. Use LoadTxFilter instead. // Deprecated: Use LoadTxFilter instead.
func (c *Client) NotifySpent(outpoints []*wire.OutPoint) error { func (c *Client) NotifySpent(outpoints []*wire.OutPoint) error {
return c.NotifySpentAsync(outpoints).Receive() return c.NotifySpentAsync(outpoints).Receive()
} }
@ -1040,7 +1040,7 @@ func (c *Client) NotifyNewTransactions(verbose bool) error {
// FutureNotifyReceivedResult is a future promise to deliver the result of a // FutureNotifyReceivedResult is a future promise to deliver the result of a
// NotifyReceivedAsync RPC invocation (or an applicable error). // NotifyReceivedAsync RPC invocation (or an applicable error).
// //
// NOTE: Deprecated. Use FutureLoadTxFilterResult instead. // Deprecated: Use FutureLoadTxFilterResult instead.
type FutureNotifyReceivedResult chan *response type FutureNotifyReceivedResult chan *response
// Receive waits for the response promised by the future and returns an error // Receive waits for the response promised by the future and returns an error
@ -1078,7 +1078,7 @@ func (c *Client) notifyReceivedInternal(addresses []string) FutureNotifyReceived
// //
// NOTE: This is a btcd extension and requires a websocket connection. // NOTE: This is a btcd extension and requires a websocket connection.
// //
// NOTE: Deprecated. Use LoadTxFilterAsync instead. // Deprecated: Use LoadTxFilterAsync instead.
func (c *Client) NotifyReceivedAsync(addresses []btcutil.Address) FutureNotifyReceivedResult { func (c *Client) NotifyReceivedAsync(addresses []btcutil.Address) FutureNotifyReceivedResult {
// Not supported in HTTP POST mode. // Not supported in HTTP POST mode.
if c.config.HTTPPostMode { if c.config.HTTPPostMode {
@ -1118,7 +1118,7 @@ func (c *Client) NotifyReceivedAsync(addresses []btcutil.Address) FutureNotifyRe
// //
// NOTE: This is a btcd extension and requires a websocket connection. // NOTE: This is a btcd extension and requires a websocket connection.
// //
// NOTE: Deprecated. Use LoadTxFilter instead. // Deprecated: Use LoadTxFilter instead.
func (c *Client) NotifyReceived(addresses []btcutil.Address) error { func (c *Client) NotifyReceived(addresses []btcutil.Address) error {
return c.NotifyReceivedAsync(addresses).Receive() return c.NotifyReceivedAsync(addresses).Receive()
} }
@ -1126,7 +1126,7 @@ func (c *Client) NotifyReceived(addresses []btcutil.Address) error {
// FutureRescanResult is a future promise to deliver the result of a RescanAsync // FutureRescanResult is a future promise to deliver the result of a RescanAsync
// or RescanEndHeightAsync RPC invocation (or an applicable error). // or RescanEndHeightAsync RPC invocation (or an applicable error).
// //
// NOTE: Deprecated. Use FutureRescanBlocksResult instead. // Deprecated: Use FutureRescanBlocksResult instead.
type FutureRescanResult chan *response type FutureRescanResult chan *response
// Receive waits for the response promised by the future and returns an error // Receive waits for the response promised by the future and returns an error
@ -1150,7 +1150,7 @@ func (r FutureRescanResult) Receive() error {
// //
// NOTE: This is a btcd extension and requires a websocket connection. // NOTE: This is a btcd extension and requires a websocket connection.
// //
// NOTE: Deprecated. Use RescanBlocksAsync instead. // Deprecated: Use RescanBlocksAsync instead.
func (c *Client) RescanAsync(startBlock *chainhash.Hash, func (c *Client) RescanAsync(startBlock *chainhash.Hash,
addresses []btcutil.Address, addresses []btcutil.Address,
outpoints []*wire.OutPoint) FutureRescanResult { outpoints []*wire.OutPoint) FutureRescanResult {
@ -1215,7 +1215,7 @@ func (c *Client) RescanAsync(startBlock *chainhash.Hash,
// //
// NOTE: This is a btcd extension and requires a websocket connection. // NOTE: This is a btcd extension and requires a websocket connection.
// //
// NOTE: Deprecated. Use RescanBlocks instead. // Deprecated: Use RescanBlocks instead.
func (c *Client) Rescan(startBlock *chainhash.Hash, func (c *Client) Rescan(startBlock *chainhash.Hash,
addresses []btcutil.Address, addresses []btcutil.Address,
outpoints []*wire.OutPoint) error { outpoints []*wire.OutPoint) error {
@ -1231,7 +1231,7 @@ func (c *Client) Rescan(startBlock *chainhash.Hash,
// //
// NOTE: This is a btcd extension and requires a websocket connection. // NOTE: This is a btcd extension and requires a websocket connection.
// //
// NOTE: Deprecated. Use RescanBlocksAsync instead. // Deprecated: Use RescanBlocksAsync instead.
func (c *Client) RescanEndBlockAsync(startBlock *chainhash.Hash, func (c *Client) RescanEndBlockAsync(startBlock *chainhash.Hash,
addresses []btcutil.Address, outpoints []*wire.OutPoint, addresses []btcutil.Address, outpoints []*wire.OutPoint,
endBlock *chainhash.Hash) FutureRescanResult { endBlock *chainhash.Hash) FutureRescanResult {
@ -1293,7 +1293,7 @@ func (c *Client) RescanEndBlockAsync(startBlock *chainhash.Hash,
// //
// NOTE: This is a btcd extension and requires a websocket connection. // NOTE: This is a btcd extension and requires a websocket connection.
// //
// NOTE: Deprecated. Use RescanBlocks instead. // Deprecated: Use RescanBlocks instead.
func (c *Client) RescanEndHeight(startBlock *chainhash.Hash, func (c *Client) RescanEndHeight(startBlock *chainhash.Hash,
addresses []btcutil.Address, outpoints []*wire.OutPoint, addresses []btcutil.Address, outpoints []*wire.OutPoint,
endBlock *chainhash.Hash) error { endBlock *chainhash.Hash) error {