multi: create and list all default internal accounts

This commit is contained in:
Oliver Gugger committed 2021-10-14 15:42:56 +02:00
1 parent ceb31f9034
commit 1541b2ef1b
5 files changed
+108 -57

No files matched your search

+7
View File
@@ -3019,6 +3019,13 @@ func (r *rpcServer) WalletBalance(ctx context.Context,
default:
}
// There now also are the accounts for the internal channel
// related keys. We skip those as they'll never have any direct
// balance.
if account.KeyScope.Purpose == keychain.BIP0043Purpose {
continue
}
// Get total balance, from txs that have >= 0 confirmations.
totalBal, err := r.server.cc.Wallet.ConfirmedBalance(
0, account.AccountName,