aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-10-07 00:29:13 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-10-07 00:29:13 +0300
commit62b3708ea5b6a2ee45491f632d2c753eae8a00ee (patch)
tree7be02cf1be9fe0fc7afb9c9ecc086e6567e57eea /src/wallet/wallet2_api.h
parentlibwallet_api: TransactionHistory: read/write syncchronization (diff)
downloadmonero-62b3708ea5b6a2ee45491f632d2c753eae8a00ee.tar.xz
libwallet_api: do not signal on sent/received tx until wallet completely
synchronized
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r--src/wallet/wallet2_api.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index 8d5223006..934cc6e38 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -255,6 +255,12 @@ struct Wallet
*/
virtual uint64_t daemonBlockChainTargetHeight() const = 0;
+ /**
+ * @brief synchronized - checks if wallet was ever synchronized
+ * @return
+ */
+ virtual bool synchronized() const = 0;
+
static std::string displayAmount(uint64_t amount);
static uint64_t amountFromString(const std::string &amount);
static uint64_t amountFromDouble(double amount);