From 3b941befae745e3f47708c3c8681454acf12070b Mon Sep 17 00:00:00 2001 From: stoffu Date: Tue, 20 Mar 2018 20:30:09 +0900 Subject: core: add get_earliest_ideal_height_for_version() --- src/cryptonote_core/cryptonote_core.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cryptonote_core/cryptonote_core.cpp') diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index adccd0469..7460cf8c8 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1427,6 +1427,11 @@ namespace cryptonote return get_blockchain_storage().get_hard_fork_version(height); } //----------------------------------------------------------------------------------------------- + uint64_t core::get_earliest_ideal_height_for_version(uint8_t version) const + { + return get_blockchain_storage().get_earliest_ideal_height_for_version(version); + } + //----------------------------------------------------------------------------------------------- bool core::check_updates() { static const char software[] = "monero"; -- cgit v1.2.3