From a9cd5d914e032f2ae6ce56e6b48f0f47d3a56ad7 Mon Sep 17 00:00:00 2001 From: xiphon Date: Fri, 20 Nov 2020 11:37:19 +0000 Subject: cryptonote_core: dandelion - use local height or median height if syncing --- src/cryptonote_core/cryptonote_core.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cryptonote_core/cryptonote_core.cpp') diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index fef411a0c..694f2cc34 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1510,6 +1510,11 @@ namespace cryptonote return true; } //----------------------------------------------------------------------------------------------- + bool core::is_synchronized() const + { + return m_pprotocol != nullptr && m_pprotocol->is_synchronized(); + } + //----------------------------------------------------------------------------------------------- void core::on_synchronized() { m_miner.on_synchronized(); -- cgit v1.2.3