From 764aa2be23ee027bb36442ee49f9437d0198b351 Mon Sep 17 00:00:00 2001 From: m2049r Date: Thu, 16 Sep 2021 20:27:58 +0200 Subject: [PATCH] fixes --- src/wallet/api/transaction_history.cpp | 3 +-- src/wallet/api/wallet.cpp | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wallet/api/transaction_history.cpp b/src/wallet/api/transaction_history.cpp index 7a9e116b5..600a5e8fa 100644 --- a/src/wallet/api/transaction_history.cpp +++ b/src/wallet/api/transaction_history.cpp @@ -233,7 +233,7 @@ void TransactionHistoryImpl::refresh() ti->m_timestamp = pd.m_timestamp; ti->m_confirmations = 0; - for (const auto &d : pd.m_dests) { + for (const auto &d : pd.m_dests) { ti->m_transfers.push_back({d.amount, d.address(m_wallet->m_wallet->nettype(), pd.m_payment_id)}); } @@ -274,4 +274,3 @@ void TransactionHistoryImpl::refresh() } } // namespace -} diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index a5d742aab..a0f147b96 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -435,6 +435,10 @@ WalletImpl::WalletImpl(NetworkType nettype, uint64_t kdf_rounds) m_refreshIntervalMillis = DEFAULT_REFRESH_INTERVAL_MILLIS; + m_refreshThread = boost::thread([this] () { + this->refreshThreadFunc(); + }); + } WalletImpl::~WalletImpl()