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
2024-08-08 21:55:10 +08:00
parent d7381ce3fe
commit b17db4a32a
4 changed files with 1 additions and 76 deletions

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(