diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-10-07 00:29:13 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-10-07 00:29:13 +0300 |
commit | 62b3708ea5b6a2ee45491f632d2c753eae8a00ee (patch) | |
tree | 7be02cf1be9fe0fc7afb9c9ecc086e6567e57eea /src/wallet/api/wallet.h | |
parent | libwallet_api: TransactionHistory: read/write syncchronization (diff) | |
download | monero-62b3708ea5b6a2ee45491f632d2c753eae8a00ee.tar.xz |
libwallet_api: do not signal on sent/received tx until wallet completely
synchronized
Diffstat (limited to 'src/wallet/api/wallet.h')
-rw-r--r-- | src/wallet/api/wallet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.h b/src/wallet/api/wallet.h index c399e3ab6..98a5f2d09 100644 --- a/src/wallet/api/wallet.h +++ b/src/wallet/api/wallet.h @@ -78,6 +78,7 @@ public: uint64_t blockChainHeight() const; uint64_t daemonBlockChainHeight() const; uint64_t daemonBlockChainTargetHeight() const; + bool synchronized() const; bool refresh(); void refreshAsync(); void setAutoRefreshInterval(int millis); @@ -108,6 +109,7 @@ private: private: friend class PendingTransactionImpl; friend class TransactionHistoryImpl; + friend class Wallet2CallbackImpl; tools::wallet2 * m_wallet; mutable std::atomic<int> m_status; @@ -133,6 +135,7 @@ private: // so it shouldn't be considered as new and pull blocks (slow-refresh) // instead of pulling hashes (fast-refresh) bool m_recoveringFromSeed; + std::atomic<bool> m_synchronized; }; |