diff --git a/src/conf.cpp b/src/conf.cpp index 8aeb0026..40b28d57 100644 --- a/src/conf.cpp +++ b/src/conf.cpp @@ -201,20 +201,6 @@ namespace conf ctx.log_dir = basedir + "/log"; } - int persist_unl_update(const std::set &updated_unl) - { - contract_config cfg = {}; - if (read_config(cfg) == -1) - return -1; - - cfg.contract.unl = updated_unl; - - if (write_config(cfg) == -1) - return -1; - - return 0; - } - /** * Reads the config file on disk and populates the in-memory 'cfg' struct. * @return 0 for successful loading of config. -1 for failure. diff --git a/src/conf.hpp b/src/conf.hpp index 322dc909..156aeb99 100644 --- a/src/conf.hpp +++ b/src/conf.hpp @@ -183,8 +183,6 @@ namespace conf void set_contract_dir_paths(std::string exepath, std::string basedir); - int persist_unl_update(const std::set &updated_unl); - //------Internal-use functions for this namespace. int read_config(contract_config &cfg); diff --git a/src/unl.cpp b/src/unl.cpp index 09f7c8e6..d8b92710 100644 --- a/src/unl.cpp +++ b/src/unl.cpp @@ -104,8 +104,6 @@ namespace unl list = conf::cfg.contract.unl; update_json_list(); - conf::persist_unl_update(list); - // Update the own node's unl status. conf::cfg.node.is_unl = (list.find(conf::cfg.node.public_key) != list.end()); is_unl_list_changed = true;