From 11e183609636cfc9a727f64efe6e2330ff9609ba Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Thu, 1 Dec 2022 19:05:17 +0100 Subject: [PATCH] fixed bug with inflating balances array --- src/wallet/wallet2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 163fdb24..51cfb030 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3145,6 +3145,7 @@ bool wallet2::balance(std::unordered_map& balances, uint64_t& mined) const { load_whitelisted_tokens_if_not_loaded(); + balances.clear(); std::unordered_map balances_map; this->balance(balances_map, mined); for (const auto& item : balances_map)