diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-10-04 12:15:02 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-10-04 12:15:02 +0200 |
commit | 2723cd12e15defadbf98123ae6791fedc8172814 (patch) | |
tree | ae9a65a0ddc141371d8eb7ef03e1de80efbb6107 /src/wallet/wallet2_api.h | |
parent | Merge pull request #1165 (diff) | |
parent | wallet2_api: added Wallet::daemonBlockChainTargetHeight() (diff) | |
download | monero-2723cd12e15defadbf98123ae6791fedc8172814.tar.xz |
Merge pull request #1173
65ea836 wallet2_api: added Wallet::daemonBlockChainTargetHeight() libwallet_api: Wallet::blockChainTargetHeight (Jacob Brydolf)
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 6 |
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); |