Entrypoint RPC service discovery now blocks until the entrypoint is actually found (#5756)

automerge
This commit is contained in:
Michael Vines
2019-08-30 16:12:58 -07:00
committed by Grimes
parent 6089c8030b
commit e3a6c9234a
3 changed files with 87 additions and 28 deletions

View File

@ -147,6 +147,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
num_nodes,
timeout,
pubkey,
None,
gossip_addr.as_ref(),
)?;
@ -184,6 +185,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
Some(1),
Some(timeout),
None,
Some(entrypoint_addr.ip()),
gossip_addr.as_ref(),
)?;
@ -211,6 +213,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
None,
None,
Some(pubkey),
None,
gossip_addr.as_ref(),
)?;
let node = nodes.iter().find(|x| x.id == pubkey).unwrap();