hardfork: add a get_ideal_version(uint64_t) function

It returns the ideal version for a given height, which is
based on the minimum height for a fork, disregarding votes
This commit is contained in:
moneromooo-monero
2015-11-09 21:22:32 +00:00
parent 4187e569d8
commit 2f254ff599
3 changed files with 40 additions and 0 deletions

View File

@@ -167,6 +167,13 @@ namespace cryptonote
*/
uint8_t get_ideal_version() const;
/**
* @brief returns the "ideal" version for a given height
*
* @param height height of the block to check
*/
uint8_t get_ideal_version(uint64_t height) const;
/**
* @brief returns the current version
*