aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-23 12:31:56 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-23 13:38:18 +0100
commitdf0cffede0d65debd8f486cfbfe820a9c6078f38 (patch)
tree0ef93a50c7cc3086880e0c7b54aa3438e598b2f0
parentcryptonote_protocol: less strict check on top version on connect (diff)
downloadmonero-df0cffede0d65debd8f486cfbfe820a9c6078f38.tar.xz
cryptonote_protocol: warn if we see a higher top version we expect
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index d4736fade..f27a5d7b8 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -268,6 +268,8 @@ 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)
+ 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);
return false;
}