aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authorJacob Brydolf <jacob@brydolf.net>2016-11-10 15:36:16 +0100
committerJacob Brydolf <jacob@brydolf.net>2016-11-13 03:36:44 +0100
commit4fca34ddb4d711ad45f4ecb30d74c7d8ebdcba5b (patch)
tree9acd7738856770ae641b85179b5aac1652e7a3de /src/wallet/wallet2.h
parentMerge pull request #1330 (diff)
downloadmonero-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.h5
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);