aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorJacob Brydolf <jacob@brydolf.net>2016-10-03 20:47:41 +0200
committerJacob Brydolf <jacob@brydolf.net>2016-10-03 20:47:41 +0200
commit65ea8364f894929be24e5753388296f14d9704c8 (patch)
tree5518fdd227ae281c83fa28268bbec85a3038ed4e /src/wallet/wallet2_api.h
parentMerge pull request #1124 (diff)
downloadmonero-65ea8364f894929be24e5753388296f14d9704c8.tar.xz
wallet2_api: added Wallet::daemonBlockChainTargetHeight()
libwallet_api: Wallet::blockChainTargetHeight Signed-off-by: Jacob Brydolf <jacob@brydolf.net>
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 08e2ae16b..8d5223006 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -248,6 +248,12 @@ struct Wallet
*/
virtual uint64_t daemonBlockChainHeight() const = 0;
+ /**
+ * @brief daemonBlockChainTargetHeight - returns daemon blockchain target height
+ * @return 0 - in case error communicating with the daemon.
+ * status() will return Status_Error and errorString() will return verbose error description
+ */
+ virtual uint64_t daemonBlockChainTargetHeight() const = 0;
static std::string displayAmount(uint64_t amount);
static uint64_t amountFromString(const std::string &amount);