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:
4 files changed
+1
-76
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user