mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 06:35:07 +01:00
mock: add CreateSimpleTx to mockWalletController
This commit is contained in:
parent
6fb664dbe1
commit
3ebc66bd16
1 changed files with 7 additions and 0 deletions
7
mock.go
7
mock.go
|
@ -11,6 +11,7 @@ import (
|
|||
"github.com/btcsuite/btcd/txscript"
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/btcsuite/btcutil"
|
||||
"github.com/btcsuite/btcwallet/wallet/txauthor"
|
||||
|
||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||
"github.com/lightningnetwork/lnd/input"
|
||||
|
@ -241,6 +242,12 @@ func (*mockWalletController) SendOutputs(outputs []*wire.TxOut,
|
|||
return nil, nil
|
||||
}
|
||||
|
||||
func (*mockWalletController) CreateSimpleTx(outputs []*wire.TxOut,
|
||||
_ lnwallet.SatPerKWeight, _ bool) (*txauthor.AuthoredTx, error) {
|
||||
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// ListUnspentWitness is called by the wallet when doing coin selection. We just
|
||||
// need one unspent for the funding transaction.
|
||||
func (m *mockWalletController) ListUnspentWitness(minconfirms,
|
||||
|
|
Loading…
Add table
Reference in a new issue