diff options
author | Jacob Brydolf <jacob@brydolf.net> | 2016-11-10 15:36:16 +0100 |
---|---|---|
committer | Jacob Brydolf <jacob@brydolf.net> | 2016-11-13 03:36:44 +0100 |
commit | 4fca34ddb4d711ad45f4ecb30d74c7d8ebdcba5b (patch) | |
tree | 9acd7738856770ae641b85179b5aac1652e7a3de /src/wallet/wallet2_api.h | |
parent | Merge pull request #1330 (diff) | |
download | monero-4fca34ddb4d711ad45f4ecb30d74c7d8ebdcba5b.tar.xz |
Wallet2: calculate approximate blockchain height on offline creation
Wallet API: add approximateBlockChainHeight()
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 6fe15d1e3..e624ffa69 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -282,6 +282,12 @@ struct Wallet virtual uint64_t blockChainHeight() const = 0; /** + * @brief approximateBlockChainHeight - returns approximate blockchain height calculated from date/time + * @return + */ + virtual uint64_t approximateBlockChainHeight() const = 0; + + /** * @brief daemonBlockChainHeight - returns daemon blockchain height * @return 0 - in case error communicating with the daemon. * status() will return Status_Error and errorString() will return verbose error description |