Only log an error if fork version is higher AND is not known.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user