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.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.h')
-rw-r--r-- | src/wallet/wallet2.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index d42385caf..cef218dd8 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -492,7 +492,10 @@ namespace tools std::string get_daemon_address() const; uint64_t get_daemon_blockchain_height(std::string& err); uint64_t get_daemon_blockchain_target_height(std::string& err); - + /*! + * \brief Calculates the approximate blockchain height from current date/time. + */ + uint64_t get_approximate_blockchain_height() const; std::vector<size_t> select_available_outputs_from_histogram(uint64_t count, bool atleast, bool unlocked, bool trusted_daemon); std::vector<size_t> select_available_outputs(const std::function<bool(const transfer_details &td)> &f); std::vector<size_t> select_available_unmixable_outputs(bool trusted_daemon); |