From 9e2f2ce157cbf53e2f491c48860564020e8a048a Mon Sep 17 00:00:00 2001 From: carla Date: Thu, 30 Apr 2020 09:08:11 +0200 Subject: [PATCH] wallet: add label parameter to SendOutputs --- rpc/legacyrpc/methods.go | 2 +- wallet/wallet.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpc/legacyrpc/methods.go b/rpc/legacyrpc/methods.go index be714a1..7fe9add 100644 --- a/rpc/legacyrpc/methods.go +++ b/rpc/legacyrpc/methods.go @@ -1378,7 +1378,7 @@ func sendPairs(w *wallet.Wallet, amounts map[string]btcutil.Amount, if err != nil { return "", err } - tx, err := w.SendOutputs(outputs, account, minconf, feeSatPerKb) + tx, err := w.SendOutputs(outputs, account, minconf, feeSatPerKb, "") if err != nil { if err == txrules.ErrAmountNegative { return "", ErrNeedPositiveAmount diff --git a/wallet/wallet.go b/wallet/wallet.go index 167d402..e38e6c0 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -3094,7 +3094,7 @@ func (w *Wallet) TotalReceivedForAddr(addr btcutil.Address, minConf int32) (btcu // SendOutputs creates and sends payment transactions. It returns the // transaction upon success. func (w *Wallet) SendOutputs(outputs []*wire.TxOut, account uint32, - minconf int32, satPerKb btcutil.Amount) (*wire.MsgTx, error) { + minconf int32, satPerKb btcutil.Amount, label string) (*wire.MsgTx, error) { // Ensure the outputs to be created adhere to the network's consensus // rules. @@ -3118,7 +3118,7 @@ func (w *Wallet) SendOutputs(outputs []*wire.TxOut, account uint32, return nil, err } - txHash, err := w.reliablyPublishTransaction(createdTx.Tx, "") + txHash, err := w.reliablyPublishTransaction(createdTx.Tx, label) if err != nil { return nil, err }