aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler_common.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_common.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_common.h')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler_common.h b/src/cryptonote_protocol/cryptonote_protocol_handler_common.h
index 1c7635fd8..79c2edf1d 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler_common.h
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler_common.h
@@ -40,6 +40,7 @@ namespace cryptonote
/************************************************************************/
struct i_cryptonote_protocol
{
+ virtual bool is_synchronized() const = 0;
virtual bool relay_block(NOTIFY_NEW_BLOCK::request& arg, cryptonote_connection_context& exclude_context)=0;
virtual bool relay_transactions(NOTIFY_NEW_TRANSACTIONS::request& arg, const boost::uuids::uuid& source, epee::net_utils::zone zone, relay_method tx_relay)=0;
//virtual bool request_objects(NOTIFY_REQUEST_GET_OBJECTS::request& arg, cryptonote_connection_context& context)=0;
@@ -50,6 +51,10 @@ namespace cryptonote
/************************************************************************/
struct cryptonote_protocol_stub: public i_cryptonote_protocol
{
+ virtual bool is_synchronized() const final
+ {
+ return false;
+ }
virtual bool relay_block(NOTIFY_NEW_BLOCK::request& arg, cryptonote_connection_context& exclude_context)
{
return false;