Skip to content

Commit

Permalink
wallet: pass in fee-per-kb into CreateSimpleTx
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed May 24, 2018
1 parent 1cbee7c commit b963eb3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,13 +561,14 @@ out:
// function is serialized to prevent the creation of many transactions which
// spend the same outputs.
func (w *Wallet) CreateSimpleTx(account uint32, outputs []*wire.TxOut,
minconf int32) (*txauthor.AuthoredTx, error) {
minconf int32, satPerKb btcutil.Amount) (*txauthor.AuthoredTx, error) {

req := createTxRequest{
account: account,
outputs: outputs,
minconf: minconf,
resp: make(chan createTxResponse),
account: account,
outputs: outputs,
minconf: minconf,
feeSatPerKB: satPerKb,
resp: make(chan createTxResponse),
}
w.createTxRequests <- req
resp := <-req.resp
Expand Down Expand Up @@ -2316,7 +2317,7 @@ func (w *Wallet) SendOutputs(outputs []*wire.TxOut, account uint32,

// Create transaction, replying with an error if the creation
// was not successful.
createdTx, err := w.CreateSimpleTx(account, outputs, minconf)
createdTx, err := w.CreateSimpleTx(account, outputs, minconf, satPerKb)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit b963eb3

Please sign in to comment.