From eb2910c0976101826241c1f9847e1d62a886d0dc Mon Sep 17 00:00:00 2001 From: im-adithya Date: Thu, 18 Jul 2024 19:41:12 +0530 Subject: [PATCH] fix: total balance in LND --- lnclient/lnd/lnd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnclient/lnd/lnd.go b/lnclient/lnd/lnd.go index e307925e6..d723d3e6d 100644 --- a/lnclient/lnd/lnd.go +++ b/lnclient/lnd/lnd.go @@ -608,7 +608,7 @@ func (svc *LNDService) GetOnchainBalance(ctx context.Context) (*lnclient.Onchain }).Debug("Listed Balances") return &lnclient.OnchainBalanceResponse{ Spendable: int64(balances.ConfirmedBalance), - Total: int64(balances.TotalBalance - balances.ReservedBalanceAnchorChan), + Total: int64(balances.TotalBalance), Reserved: int64(balances.ReservedBalanceAnchorChan), }, nil }