Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a wait threshold timer instead of timer.sleep(1) #43

Open
arcolife opened this issue Jul 16, 2018 · 0 comments
Open

add a wait threshold timer instead of timer.sleep(1) #43

arcolife opened this issue Jul 16, 2018 · 0 comments
Assignees
Labels
C-level trivial low-level difficulty
Milestone

Comments

@arcolife
Copy link
Collaborator

TODO comments in src/pbft-core/pbft-sim-engine/pbftserverengine.go

	// TODO: change listenready to switch case assertion and kill-timer clock
	for i := 0; i < cfg.N; i++ {
		<-svList[i].Nd.ListenReady
	}

	time.Sleep(1 * time.Second) // wait for the servers to accept incoming connections
	for i := 0; i < cfg.N; i++ {
		svList[i].Nd.SetupReady <- true // make them to dial each other's RPCs
	}

	// TODO: change listenready to switch case assertion and kill-timer clock
	//fmt.Println("[!!!] Please allow the program to accept incoming connections if you are using Mac OS.")
	time.Sleep(1 * time.Second) // wait for the servers to accept incoming connections
@arcolife arcolife added the C-level trivial low-level difficulty label Jul 16, 2018
@arcolife arcolife added this to the Alpha 1 milestone Jul 16, 2018
@arcolife arcolife self-assigned this Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-level trivial low-level difficulty
Projects
None yet
Development

No branches or pull requests

1 participant