diff options
author | Thaer Khawaja <thaer.khawaja@gmail.com> | 2018-04-15 19:02:26 -0700 |
---|---|---|
committer | Thaer Khawaja <thaer.khawaja@gmail.com> | 2018-04-23 07:53:46 -0700 |
commit | 80dc5d211071c9cf29bac48bb52c7a00d8e5eb4d (patch) | |
tree | 35b62b839f0082ceb053fd3a2284224ccd40c32b /src/cryptonote_protocol/cryptonote_protocol_handler.inl | |
parent | Merge pull request #3619 (diff) | |
download | monero-80dc5d211071c9cf29bac48bb52c7a00d8e5eb4d.tar.xz |
Only log an error if fork version is higher AND is not known.
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_handler.inl')
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 5d91ad569..78f36cc5b 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -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"); |