wallet: add label parameter to SendOutputs
This commit is contained in:
parent
d2f9185f6a
commit
9e2f2ce157
2 changed files with 3 additions and 3 deletions
|
@ -1378,7 +1378,7 @@ func sendPairs(w *wallet.Wallet, amounts map[string]btcutil.Amount,
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
tx, err := w.SendOutputs(outputs, account, minconf, feeSatPerKb)
|
tx, err := w.SendOutputs(outputs, account, minconf, feeSatPerKb, "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == txrules.ErrAmountNegative {
|
if err == txrules.ErrAmountNegative {
|
||||||
return "", ErrNeedPositiveAmount
|
return "", ErrNeedPositiveAmount
|
||||||
|
|
|
@ -3094,7 +3094,7 @@ func (w *Wallet) TotalReceivedForAddr(addr btcutil.Address, minConf int32) (btcu
|
||||||
// SendOutputs creates and sends payment transactions. It returns the
|
// SendOutputs creates and sends payment transactions. It returns the
|
||||||
// transaction upon success.
|
// transaction upon success.
|
||||||
func (w *Wallet) SendOutputs(outputs []*wire.TxOut, account uint32,
|
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
|
// Ensure the outputs to be created adhere to the network's consensus
|
||||||
// rules.
|
// rules.
|
||||||
|
@ -3118,7 +3118,7 @@ func (w *Wallet) SendOutputs(outputs []*wire.TxOut, account uint32,
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
txHash, err := w.reliablyPublishTransaction(createdTx.Tx, "")
|
txHash, err := w.reliablyPublishTransaction(createdTx.Tx, label)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue