lnd: WalletBalance checks on account basis

This commit is contained in:
Slyghtning 2023-07-26 17:45:05 +02:00
parent 442f1ac4d4
commit dd2a89a6ee
No known key found for this signature in database
GPG Key ID: F82D456EA023C9BF

View File

@ -3194,7 +3194,7 @@ func (r *rpcServer) WalletBalance(ctx context.Context,
// Retrieve all existing wallet accounts. We'll compute the confirmed
// and unconfirmed balance for each and tally them up.
accounts, err := r.server.cc.Wallet.ListAccounts("", nil)
accounts, err := r.server.cc.Wallet.ListAccounts(in.Account, nil)
if err != nil {
return nil, err
}