|solana-gossip spy| no longer requires an entrypoint (#6999)

This commit is contained in:
Michael Vines
2019-11-16 14:16:28 -07:00
committed by GitHub
parent 70322d1ff8
commit c3926e6af0
4 changed files with 106 additions and 51 deletions

View File

@ -172,11 +172,11 @@ fn create_rpc_client(
entrypoint: &ContactInfo,
) -> Result<(std::net::SocketAddr, RpcClient), String> {
let (nodes, _archivers) = discover(
&entrypoint.gossip,
Some(&entrypoint.gossip),
Some(1),
Some(60),
None,
Some(entrypoint.gossip),
Some(&entrypoint.gossip),
None,
)
.map_err(|err| err.to_string())?;