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 }