lnrpc+lnwallet: replace FetchInputInfo with new methods

This commit replaces the usage of `FetchInputInfo` with
`FetchOutpointInfo` and `FetchDerivationInfo` to remove unncessary
fetching of the derivation path.
This commit is contained in:
yyforyongyu committed 2024-08-09 21:51:18 +08:00
1 parent 9801ee036b
commit aba8507b2a
3 files changed
+23 -10

No files matched your search

+1 -1
View File
@@ -1142,7 +1142,7 @@ func (w *WalletKit) sweepNewInput(op *wire.OutPoint, currentHeight uint32,
//
// We'll gather all of the information required by the UtxoSweeper in
// order to sweep the output.
utxo, err := w.cfg.Wallet.FetchInputInfo(op)
utxo, err := w.cfg.Wallet.FetchOutpointInfo(op)
if err != nil {
return err
}