lntest+lnwallet: remove the method FetchInputInfo

This method is no longer used. In addition, the `Derivation` field on
the `Utxo` is also removed to avoid nil dereference.
This commit is contained in:
yyforyongyu committed 2024-08-09 22:01:56 +08:00
1 parent d7381ce3fe
commit b17db4a32a
4 files changed
+1 -76

No files matched your search

-15
View File
@@ -43,21 +43,6 @@ func (w *WalletController) BackEnd() string {
return "mock"
}
// FetchInputInfo will be called to get info about the inputs to the funding
// transaction.
func (w *WalletController) FetchInputInfo(
prevOut *wire.OutPoint) (*lnwallet.Utxo, error) {
utxo := &lnwallet.Utxo{
AddressType: lnwallet.WitnessPubKey,
Value: 10 * btcutil.SatoshiPerBitcoin,
PkScript: []byte("dummy"),
Confirmations: 1,
OutPoint: *prevOut,
}
return utxo, nil
}
// FetchOutpointInfo will be called to get info about the inputs to the funding
// transaction.
func (w *WalletController) FetchOutpointInfo(