mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-01 02:51:37 +02:00
lnd: WalletBalance checks on account basis
This commit is contained in:
@ -3194,7 +3194,7 @@ func (r *rpcServer) WalletBalance(ctx context.Context,
|
|||||||
|
|
||||||
// Retrieve all existing wallet accounts. We'll compute the confirmed
|
// Retrieve all existing wallet accounts. We'll compute the confirmed
|
||||||
// and unconfirmed balance for each and tally them up.
|
// 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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user