mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
rpcserver: remove redundant call to FetchInputInfo
This commit is contained in:
parent
aba8507b2a
commit
d7381ce3fe
1 changed files with 1 additions and 8 deletions
|
@ -3488,14 +3488,7 @@ func (r *rpcServer) WalletBalance(ctx context.Context,
|
|||
return nil, err
|
||||
}
|
||||
for _, leasedOutput := range leases {
|
||||
utxoInfo, err := r.server.cc.Wallet.FetchInputInfo(
|
||||
&leasedOutput.Outpoint,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
lockedBalance += utxoInfo.Value
|
||||
lockedBalance += btcutil.Amount(leasedOutput.Value)
|
||||
}
|
||||
|
||||
// Get the current number of non-private anchor channels.
|
||||
|
|
Loading…
Add table
Reference in a new issue