mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
cryptonote_protocol: warn if we see a higher top version we expect
This commit is contained in:
parent
317ab21a03
commit
df0cffede0
@ -268,6 +268,8 @@ namespace cryptonote
|
|||||||
const uint8_t version = m_core.get_ideal_hard_fork_version(hshd.current_height - 1);
|
const uint8_t version = m_core.get_ideal_hard_fork_version(hshd.current_height - 1);
|
||||||
if (version >= 6 && version != hshd.top_version)
|
if (version >= 6 && version != hshd.top_version)
|
||||||
{
|
{
|
||||||
|
if (version < hshd.top_version)
|
||||||
|
MCLOG_RED(el::Level::Warning, "global", context << " peer claims higher version that we think - we may be forked from the network and a software upgrade may be needed");
|
||||||
LOG_DEBUG_CC(context, "Ignoring due to wrong top version for block " << (hshd.current_height - 1) << ": " << (unsigned)hshd.top_version << ", expected " << (unsigned)version);
|
LOG_DEBUG_CC(context, "Ignoring due to wrong top version for block " << (hshd.current_height - 1) << ": " << (unsigned)hshd.top_version << ", expected " << (unsigned)version);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user