aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.h
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-11-20 11:37:19 +0000
committerxiphon <xiphon@protonmail.com>2020-11-25 01:27:42 +0000
commita9cd5d914e032f2ae6ce56e6b48f0f47d3a56ad7 (patch)
treed38857614b328ebccf77fba6bed35834ff029fa6 /src/cryptonote_protocol/cryptonote_protocol_handler.h
parent9c1562c03864f44a99d076bd3b244d3a1fea65b4 (diff)
downloadmonzero-core-a9cd5d914e032f2ae6ce56e6b48f0f47d3a56ad7.tar.gz
monzero-core-a9cd5d914e032f2ae6ce56e6b48f0f47d3a56ad7.tar.xz
monzero-core-a9cd5d914e032f2ae6ce56e6b48f0f47d3a56ad7.zip
cryptonote_core: dandelion - use local height or median height if syncing
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_handler.h')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.h b/src/cryptonote_protocol/cryptonote_protocol_handler.h
index 89860fe41..61aac6d81 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.h
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.h
@@ -104,7 +104,7 @@ namespace cryptonote
bool get_payload_sync_data(CORE_SYNC_DATA& hshd);
bool on_callback(cryptonote_connection_context& context);
t_core& get_core(){return m_core;}
- bool is_synchronized(){return m_synchronized;}
+ virtual bool is_synchronized() const final { return !no_sync() && m_synchronized; }
void log_connections();
std::list<connection_info> get_connections();
const block_queue &get_block_queue() const { return m_block_queue; }