diff options
author | stoffu <stoffu@protonmail.ch> | 2018-03-20 20:30:09 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-03-21 01:53:24 +0900 |
commit | 3b941befae745e3f47708c3c8681454acf12070b (patch) | |
tree | 83c2b716a17f6f4d04d171ea31b907dcf2130126 /src/cryptonote_core/blockchain.h | |
parent | Merge pull request #3429 (diff) | |
download | monero-3b941befae745e3f47708c3c8681454acf12070b.tar.xz |
core: add get_earliest_ideal_height_for_version()
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r-- | src/cryptonote_core/blockchain.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h index 4423199de..6fb990a77 100644 --- a/src/cryptonote_core/blockchain.h +++ b/src/cryptonote_core/blockchain.h @@ -792,6 +792,13 @@ namespace cryptonote uint8_t get_hard_fork_version(uint64_t height) const { return m_hardfork->get(height); } /** + * @brief returns the earliest block a given version may activate + * + * @return the height + */ + uint64_t get_earliest_ideal_height_for_version(uint8_t version) const { return m_hardfork->get_earliest_ideal_height_for_version(version); } + + /** * @brief get information about hardfork voting for a version * * @param version the version in question |