Wallet2: calculate approximate blockchain height on offline creation

Wallet API: add approximateBlockChainHeight()
This commit is contained in:
Jacob Brydolf
2016-11-10 15:36:16 +01:00
parent eb6d66e4fc
commit 4fca34ddb4
5 changed files with 43 additions and 2 deletions
+4 -1
View File
@@ -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);