aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/node_server.cpp
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 /tests/unit_tests/node_server.cpp
parentMerge pull request #7007 (diff)
downloadmonero-a9cd5d914e032f2ae6ce56e6b48f0f47d3a56ad7.tar.xz
cryptonote_core: dandelion - use local height or median height if syncing
Diffstat (limited to '')
-rw-r--r--tests/unit_tests/node_server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit_tests/node_server.cpp b/tests/unit_tests/node_server.cpp
index 588e91d02..0191e5aa4 100644
--- a/tests/unit_tests/node_server.cpp
+++ b/tests/unit_tests/node_server.cpp
@@ -47,9 +47,10 @@ namespace cryptonote {
class test_core : public cryptonote::i_core_events
{
public:
+ virtual bool is_synchronized() const final { return true; }
void on_synchronized(){}
void safesyncmode(const bool){}
- uint64_t get_current_blockchain_height() const {return 1;}
+ virtual uint64_t get_current_blockchain_height() const final {return 1;}
void set_target_blockchain_height(uint64_t) {}
bool init(const boost::program_options::variables_map& vm) {return true ;}
bool deinit(){return true;}