Skip to content

Commit

Permalink
fix: total balance in LND
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jul 18, 2024
1 parent 2524141 commit eb2910c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnclient/lnd/lnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit eb2910c

Please sign in to comment.