From 154dbb399429c5ce03d8524dd546ed27280b19d7 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Wed, 8 Jun 2022 17:52:58 +0200 Subject: [PATCH] filtering transactions improved2 --- src/wallet/wallet2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index e46b723e..3ef8fb35 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3285,7 +3285,7 @@ bool wallet2::is_consolidating_transaction(const wallet_public::wallet_transfer_ for (uint64_t r : wti.td.rcv){income += r;} uint64_t spend = 0; for (uint64_t s : wti.td.spn) { spend += s; } - if (get_tx_fee(wti.tx) + spend = income) + if (get_tx_fee(wti.tx) + spend == income) return true; } return false; @@ -3300,7 +3300,7 @@ void wallet2::get_recent_transfers_history(std::vector