wallet: pass in fee-per-kb into CreateSimpleTx
This commit is contained in:
parent
1cbee7c506
commit
b963eb3ba4
1 changed files with 7 additions and 6 deletions
|
@ -561,12 +561,13 @@ out:
|
||||||
// function is serialized to prevent the creation of many transactions which
|
// function is serialized to prevent the creation of many transactions which
|
||||||
// spend the same outputs.
|
// spend the same outputs.
|
||||||
func (w *Wallet) CreateSimpleTx(account uint32, outputs []*wire.TxOut,
|
func (w *Wallet) CreateSimpleTx(account uint32, outputs []*wire.TxOut,
|
||||||
minconf int32) (*txauthor.AuthoredTx, error) {
|
minconf int32, satPerKb btcutil.Amount) (*txauthor.AuthoredTx, error) {
|
||||||
|
|
||||||
req := createTxRequest{
|
req := createTxRequest{
|
||||||
account: account,
|
account: account,
|
||||||
outputs: outputs,
|
outputs: outputs,
|
||||||
minconf: minconf,
|
minconf: minconf,
|
||||||
|
feeSatPerKB: satPerKb,
|
||||||
resp: make(chan createTxResponse),
|
resp: make(chan createTxResponse),
|
||||||
}
|
}
|
||||||
w.createTxRequests <- req
|
w.createTxRequests <- req
|
||||||
|
@ -2316,7 +2317,7 @@ func (w *Wallet) SendOutputs(outputs []*wire.TxOut, account uint32,
|
||||||
|
|
||||||
// Create transaction, replying with an error if the creation
|
// Create transaction, replying with an error if the creation
|
||||||
// was not successful.
|
// was not successful.
|
||||||
createdTx, err := w.CreateSimpleTx(account, outputs, minconf)
|
createdTx, err := w.CreateSimpleTx(account, outputs, minconf, satPerKb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue