mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 12:01:27 +02:00
multi: add DecorateInputs to WalletController interface
This commit adds the new DecorateInputs method of the base wallet to the WalletController interface.
This commit is contained in:
@@ -596,6 +596,18 @@ func (b *BtcWallet) FinalizePsbt(packet *psbt.Packet, accountName string) error
|
||||
return b.wallet.FinalizePsbt(keyScope, accountNum, packet)
|
||||
}
|
||||
|
||||
// DecorateInputs fetches the UTXO information of all inputs it can identify and
|
||||
// adds the required information to the package's inputs. The failOnUnknown
|
||||
// boolean controls whether the method should return an error if it cannot
|
||||
// identify an input or if it should just skip it.
|
||||
//
|
||||
// This is a part of the WalletController interface.
|
||||
func (b *BtcWallet) DecorateInputs(packet *psbt.Packet,
|
||||
failOnUnknown bool) error {
|
||||
|
||||
return b.wallet.DecorateInputs(packet, failOnUnknown)
|
||||
}
|
||||
|
||||
// lookupFirstCustomAccount returns the first custom account found. In theory,
|
||||
// there should be only one custom account for the given name. However, due to a
|
||||
// lack of check, users could have created custom accounts with various key
|
||||
|
Reference in New Issue
Block a user