rpcserver: remove redundant call to FetchInputInfo

This commit is contained in:
yyforyongyu committed 2024-08-09 22:01:56 +08:00
1 parent aba8507b2a
commit d7381ce3fe
1 file changed
+1 -8
+1 -8
View File
@@ -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.