chore: add warning when force sync is enabled
Description
Warning is printed on the screen and the logs as well.
@@ -252,6 +252,12 @@ async fn run_node(node_config: Arc<GlobalConfig>, bootstrap: ConfigBootstrap) ->
task::spawn(cli_loop(parser, shutdown));
}
+ if !node_config.force_sync_peers.is_empty() {
+ warn!(
+ target: LOG_TARGET,
+ "Force Sync Peers have been set! This node will only sync to the nodes in this set"
+ );
+ }
ctx.run().await;
