diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-01-16 21:40:20 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-01-16 21:40:20 +0200 |
commit | c84d559fb11af84bcca27cfb8328334cdbc318b8 (patch) | |
tree | 926164fda58c5607ab29983a051b536f2d856126 /src/wallet/api/wallet2_api.h | |
parent | Merge pull request #5032 (diff) | |
parent | wallet api/device: set estimated restore height if none is provided (diff) | |
download | monero-c84d559fb11af84bcca27cfb8328334cdbc318b8.tar.xz |
Merge pull request #5034
13785ec9 wallet api/device: set estimated restore height if none is provided (selsta)
Diffstat (limited to 'src/wallet/api/wallet2_api.h')
-rw-r--r-- | src/wallet/api/wallet2_api.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/api/wallet2_api.h b/src/wallet/api/wallet2_api.h index 82627de29..5c301974f 100644 --- a/src/wallet/api/wallet2_api.h +++ b/src/wallet/api/wallet2_api.h @@ -575,6 +575,12 @@ struct Wallet virtual uint64_t approximateBlockChainHeight() const = 0; /** + * @brief estimateBlockChainHeight - returns estimate blockchain height. More accurate than approximateBlockChainHeight, + * uses daemon height and falls back to calculation from date/time + * @return + **/ + virtual uint64_t estimateBlockChainHeight() 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 |