Merge pull request #3683

dad10775 Only log an error if fork version is higher AND is not known. (Thaer Khawaja)
This commit is contained in:
Riccardo Spagni 2018-04-28 16:57:36 +02:00
commit 2ab5b1a21f
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
5 changed files with 15 additions and 1 deletions

View file

@ -1418,6 +1418,11 @@ namespace cryptonote
return true;
}
//-----------------------------------------------------------------------------------------------
uint8_t core::get_ideal_hard_fork_version() const
{
return get_blockchain_storage().get_ideal_hard_fork_version();
}
//-----------------------------------------------------------------------------------------------
uint8_t core::get_ideal_hard_fork_version(uint64_t height) const
{
return get_blockchain_storage().get_ideal_hard_fork_version(height);

View file

@ -641,6 +641,13 @@ namespace cryptonote
*/
uint64_t get_target_blockchain_height() const;
/**
* @brief returns the newest hardfork version known to the blockchain
*
* @return the version
*/
uint8_t get_ideal_hard_fork_version() const;
/**
* @brief return the ideal hard fork version for a given block height
*