From 6b75cb1fb55e85def2fa71c8088597c83da6a4fe Mon Sep 17 00:00:00 2001 From: Some Random Crypto Guy Date: Mon, 19 Aug 2024 11:07:45 +0100 Subject: [PATCH] fixed erroneous display of staked coins in all wallet balances --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 1e4f94dcc..8f5c96683 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -6921,7 +6921,7 @@ uint64_t wallet2::balance(uint32_t index_major, const std::string& asset_type, b uint64_t amount = 0; for (const auto& i : balance_per_subaddress(index_major, asset_type, strict)) amount += i.second; - if (asset_type == "SAL") { + if (index_major == 0 && asset_type == "SAL") { // Iterate over the locked coins, adding them to the _locked_ balance for (const auto& i : m_locked_coins) amount += i.second.m_amount;