Merge pull request #2276

a1891ebe tests: fix tests build (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-08-15 20:53:41 +02:00
commit 53dde37ceb
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
5 changed files with 30 additions and 2 deletions

View file

@ -1232,6 +1232,16 @@ namespace cryptonote
return true;
}
//-----------------------------------------------------------------------------------------------
uint8_t core::get_ideal_hard_fork_version(uint64_t height) const
{
return get_blockchain_storage().get_ideal_hard_fork_version(height);
}
//-----------------------------------------------------------------------------------------------
uint8_t core::get_hard_fork_version(uint64_t height) const
{
return get_blockchain_storage().get_hard_fork_version(height);
}
//-----------------------------------------------------------------------------------------------
bool core::check_updates()
{
static const char software[] = "monero";

View file

@ -620,6 +620,20 @@ namespace cryptonote
*/
uint64_t get_target_blockchain_height() const;
/**
* @brief return the ideal hard fork version for a given block height
*
* @return what it says above
*/
uint8_t get_ideal_hard_fork_version(uint64_t height) const;
/**
* @brief return the hard fork version for a given block height
*
* @return what it says above
*/
uint8_t get_hard_fork_version(uint64_t height) const;
/**
* @brief gets start_time
*