mirror of
https://github.com/monero-project/monero.git
synced 2025-08-15 06:45:43 -04:00
Only log an error if fork version is higher AND is not known.
This commit is contained in:
parent
8fdf645397
commit
dad1077577
5 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue