From b9335fefc8812f527e1751ac94a8b924639b96fc Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 24 Oct 2019 09:40:02 +0300 Subject: [PATCH] wallet: an attempt to fix #47 --- src/wallet/wallet2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 2bb7b9c9..e8d9b357 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -2242,6 +2242,9 @@ uint64_t wallet2::balance(uint64_t& unlocked, uint64_t& awaiting_in, uint64_t& a for(auto& utx : m_unconfirmed_txs) { + if (utx.second.contract.size()) + continue; // skip unconfirmed contract tx + if (utx.second.is_income) { balance_total += utx.second.amount;