Move verify_udp_stats_access out of the way
This commit is contained in:
parent
c6f3da4879
commit
988210908c
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue