aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-06-08 14:31:49 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-06-08 14:31:49 -0500
commit22c87302618fccee0de2affc9a0c689ba8aea268 (patch)
treec7f7cbb44b635cacd39424e9f7c601cd1412a702 /src/cryptonote_core/blockchain.h
parentMerge pull request #3444 (diff)
parentcore: add get_earliest_ideal_height_for_version() (diff)
downloadmonero-22c87302618fccee0de2affc9a0c689ba8aea268.tar.xz
Merge pull request #3450
3b941be core: add get_earliest_ideal_height_for_version() (stoffu)
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r--src/cryptonote_core/blockchain.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h
index 769e608ca..ef736d1e7 100644
--- a/src/cryptonote_core/blockchain.h
+++ b/src/cryptonote_core/blockchain.h
@@ -795,6 +795,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