mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-13 18:28:55 +00:00
node: load peers to server config on change
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user