-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from relab/bugfix/issue129
Fix TimeoutMsgFromProto reported in issue 129
- Loading branch information
Showing
12 changed files
with
79 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version: '3.8' | ||
|
||
services: | ||
worker: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
clients = 2 | ||
replicas = 8 | ||
|
||
hosts = [ | ||
"hotstuff_worker_1", | ||
"hotstuff_worker_2", | ||
"hotstuff_worker_3", | ||
"hotstuff_worker_4", | ||
hosts = [ | ||
"hotstuff-worker-1", | ||
"hotstuff-worker-2", | ||
"hotstuff-worker-3", | ||
"hotstuff-worker-4", | ||
] | ||
|
||
# specific assingments for some hosts | ||
# specific assignments for some hosts | ||
[[hosts-config]] | ||
name = "hotstuff_worker_1" | ||
name = "hotstuff-worker-1" | ||
clients = 2 | ||
replicas = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#!/bin/bash | ||
|
||
image="hotstuff_worker" | ||
image="hotstuff-worker" | ||
|
||
if [ ! -f "./id" ]; then | ||
ssh-keygen -t ed25519 -C "hotstuff-test" -f "./id" -N "" | ||
fi | ||
|
||
# ensure that the image is built | ||
docker images | grep "$image" &>/dev/null \ | ||
|| docker build -t "$image" -f "./Dockerfile.worker" ".." | ||
docker images | grep "$image" &>/dev/null || | ||
docker build -t "$image" -f "./Dockerfile.worker" ".." | ||
|
||
container="$(docker run --rm -d -p 2020:22 -p 4000:4000 "$image")" | ||
|
||
sleep 1s | ||
|
||
ssh-keyscan -p 2020 127.0.0.1 localhost > known_hosts | ||
ssh-keyscan -p 2020 127.0.0.1 localhost >known_hosts | ||
|
||
docker logs --follow "$container" | ||
docker rm -f "$container" &>/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# ssh_config used with the controller container | ||
|
||
Host hotstuff_worker_* | ||
Host hotstuff-worker-* | ||
User root | ||
IdentityFile ~/.ssh/id |