mirror of
https://github.com/monero-project/monero.git
synced 2025-07-31 19:38:37 -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
|
@ -271,7 +271,7 @@ namespace cryptonote
|
|||
const uint8_t version = m_core.get_ideal_hard_fork_version(hshd.current_height - 1);
|
||||
if (version >= 6 && version != hshd.top_version)
|
||||
{
|
||||
if (version < hshd.top_version)
|
||||
if (version < hshd.top_version && version == m_core.get_ideal_hard_fork_version())
|
||||
MCLOG_RED(el::Level::Warning, "global", context << " peer claims higher version that we think (" <<
|
||||
(unsigned)hshd.top_version << " for " << (hshd.current_height - 1) << " instead of " << (unsigned)version <<
|
||||
") - we may be forked from the network and a software upgrade may be needed");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue