From baf31b0753a0ce1f720a478d1f19c5f4563f3cbc Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Sun, 18 Sep 2022 15:15:14 -0400 Subject: [PATCH] bootstrap: Sleep in loop to get rpc peers (#27843) --- validator/src/bootstrap.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validator/src/bootstrap.rs b/validator/src/bootstrap.rs index 7f54db69b0..b5fe8b136a 100644 --- a/validator/src/bootstrap.rs +++ b/validator/src/bootstrap.rs @@ -618,6 +618,8 @@ fn get_rpc_nodes( let mut newer_cluster_snapshot_timeout = None; let mut retry_reason = None; loop { + // Give gossip some time to populate and not spin on grabbing the crds lock + std::thread::sleep(Duration::from_secs(1)); info!("\n{}", cluster_info.rpc_info_trace()); let rpc_peers = get_rpc_peers(