mirror of
https://github.com/monero-project/monero.git
synced 2025-06-01 12:14:26 -04:00
Toggle SAFE syncmode on and off automatically
If monerod is started with default sync mode, set it to SAFE after synchronization completes. Set it back to FAST if synchronization restarts (e.g. because another peer has a longer blockchain). If monerod is started with an explicit sync mode, none of this automation takes effect.
This commit is contained in:
parent
4c7f8ac04f
commit
9a859844f4
8 changed files with 47 additions and 2 deletions
|
@ -47,6 +47,7 @@ public:
|
|||
virtual void open(const std::string& filename, const int db_flags = 0) { }
|
||||
virtual void close() {}
|
||||
virtual void sync() {}
|
||||
virtual void safesyncmode(const bool onoff) {}
|
||||
virtual void reset() {}
|
||||
virtual std::vector<std::string> get_filenames() const { return std::vector<std::string>(); }
|
||||
virtual std::string get_db_name() const { return std::string(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue