node: load peers to server config on change
This commit is contained in:
parent
5bb03e1642
commit
880f5629f5
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ impl PeersConfig {
|
||||||
let chain_type = AppConfig::chain_type();
|
let chain_type = AppConfig::chain_type();
|
||||||
let config_path = Settings::get_config_path(Self::FILE_NAME, Some(chain_type.shortname()));
|
let config_path = Settings::get_config_path(Self::FILE_NAME, Some(chain_type.shortname()));
|
||||||
Settings::write_to_file(self, config_path);
|
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.
|
/// Convert string to [`PeerAddr`] if address is in correct format (`host:port`) and available.
|
||||||
|
|
Loading…
Reference in a new issue