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:
parent
a1c0e30051
commit
4a277276fd
@ -151,9 +151,11 @@ type WalletController interface {
|
|||||||
|
|
||||||
// SendOutputs funds, signs, and broadcasts a Bitcoin transaction
|
// SendOutputs funds, signs, and broadcasts a Bitcoin transaction
|
||||||
// paying out to the specified outputs. In the case the wallet has
|
// paying out to the specified outputs. In the case the wallet has
|
||||||
// insufficient funds, or the outputs are non-standard, an error
|
// insufficient funds, or the outputs are non-standard, an error should
|
||||||
// should be returned.
|
// be returned. This method also takes the target fee expressed in
|
||||||
SendOutputs(outputs []*wire.TxOut) (*chainhash.Hash, error)
|
// 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
|
// ListUnspentWitness returns all unspent outputs which are version 0
|
||||||
// witness programs. The 'confirms' parameter indicates the minimum
|
// witness programs. The 'confirms' parameter indicates the minimum
|
||||||
|
Loading…
Reference in New Issue
Block a user