Merge pull request #7018

a9cd5d9 cryptonote_core: dandelion - use local height or median height if syncing (xiphon)
This commit is contained in:
luigi1111 2020-11-29 01:58:13 -06:00
commit 36d31ba0be
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
10 changed files with 85 additions and 18 deletions

View file

@ -120,7 +120,12 @@ namespace
{
std::map<cryptonote::relay_method, std::vector<cryptonote::blobdata>> relayed_;
uint64_t get_target_blockchain_height() const override
virtual bool is_synchronized() const final
{
return false;
}
virtual uint64_t get_current_blockchain_height() const final
{
return 0;
}

View file

@ -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;}