Move verify_udp_stats_access out of the way

This commit is contained in:
Michael Vines 2022-03-18 12:24:42 -07:00
parent c6f3da4879
commit 988210908c
1 changed files with 7 additions and 7 deletions

View File

@ -378,6 +378,13 @@ impl Validator {
warn!("identity: {}", id);
warn!("vote account: {}", vote_account);
if !config.no_os_network_stats_reporting {
verify_udp_stats_access().unwrap_or_else(|err| {
error!("Failed to access UDP stats: {}. Bypass check with --no-os-network-stats-reporting.", err);
abort();
});
}
let mut bank_notification_senders = Vec::new();
let geyser_plugin_service =
@ -558,13 +565,6 @@ impl Validator {
*start_progress.write().unwrap() = ValidatorStartProgress::StartingServices;
if !config.no_os_network_stats_reporting {
verify_udp_stats_access().unwrap_or_else(|err| {
error!("Failed to access UDP stats: {}. Bypass check with --no-os-network-stats-reporting.", err);
abort();
});
}
let leader_schedule_cache = Arc::new(leader_schedule_cache);
let sample_performance_service =