node: load peers to server config on change

This commit is contained in:
ardocrat 2024-05-15 14:23:06 +03:00
parent 5bb03e1642
commit 880f5629f5

View file

@ -49,6 +49,8 @@ impl PeersConfig {
let chain_type = AppConfig::chain_type();
let config_path = Settings::get_config_path(Self::FILE_NAME, Some(chain_type.shortname()));
Settings::write_to_file(self, config_path);
// Load changes to node server config.
Self::load_to_server_config();
}
/// Convert string to [`PeerAddr`] if address is in correct format (`host:port`) and available.