lnwallet: update SendOutputs method on WalletController to accept fee

In this commit, we extend the existing SendOutputs method on the
WalletController interface to be able to accept a custom fee. With
this, users are now able to specify their exact fee, allowing the
wallet to be fee estimation agnostic.
This commit is contained in:
Olaoluwa Osuntokun 2017-11-23 00:28:56 -06:00
parent a1c0e30051
commit 4a277276fd
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -151,9 +151,11 @@ type WalletController interface {
// SendOutputs funds, signs, and broadcasts a Bitcoin transaction
// paying out to the specified outputs. In the case the wallet has
// insufficient funds, or the outputs are non-standard, an error
// should be returned.
SendOutputs(outputs []*wire.TxOut) (*chainhash.Hash, error)
// insufficient funds, or the outputs are non-standard, an error should
// be returned. This method also takes the target fee expressed in
// sat/byte that should be used when crafting the transaction.
SendOutputs(outputs []*wire.TxOut,
feeSatPerByte btcutil.Amount) (*chainhash.Hash, error)
// ListUnspentWitness returns all unspent outputs which are version 0
// witness programs. The 'confirms' parameter indicates the minimum