diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-09 21:22:32 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-10 09:45:51 +0000 |
commit | 2f254ff5999f1b814a91c33f982cb2fc0844ec66 (patch) | |
tree | d18eed234c70ae166640d0de21a956ec74f6263e /src/cryptonote_core/hardfork.h | |
parent | hardfork: allow per-fork voting thresholds (diff) | |
download | monero-2f254ff5999f1b814a91c33f982cb2fc0844ec66.tar.xz |
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
Diffstat (limited to 'src/cryptonote_core/hardfork.h')
-rw-r--r-- | src/cryptonote_core/hardfork.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cryptonote_core/hardfork.h b/src/cryptonote_core/hardfork.h index f44d20f8e..6800749da 100644 --- a/src/cryptonote_core/hardfork.h +++ b/src/cryptonote_core/hardfork.h @@ -168,6 +168,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 * * This is the latest version that's past its trigger date and had enough votes |