diff options
| author | xiphon <xiphon@protonmail.com> | 2020-11-20 11:37:19 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-11-25 01:27:42 +0000 |
| commit | a9cd5d914e032f2ae6ce56e6b48f0f47d3a56ad7 (patch) | |
| tree | d38857614b328ebccf77fba6bed35834ff029fa6 /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 9c1562c03864f44a99d076bd3b244d3a1fea65b4 (diff) | |
| download | monzero-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_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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(); |
