-
Notifications
You must be signed in to change notification settings - Fork 1
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
Switch network to minows #165
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will in fact not work: your changes are still in the c4dt/student_24_dela_libp2p
repo. I thought you only pushed the changes to the scripts regarding the debugging capabilities.
To push the full changes, we'll have to merge your c4dt/student_24_dela_libp2p
first to c4dt/dela
.
// | ||
// # Expect GOPATH to be correctly set to have dvoting available. | ||
// go install | ||
// | ||
// dvoting --config /tmp/node1 start --port 2001 & | ||
// dvoting --config /tmp/node2 start --port 2002 & | ||
// dvoting --config /tmp/node3 start --port 2003 & | ||
// | ||
// # Share the different certificates among the participants. | ||
// dvoting --config /tmp/node2 minogrpc join --address 127.0.0.1:2001\ | ||
// $(dvoting --config /tmp/node1 minogrpc token) | ||
// dvoting --config /tmp/node3 minogrpc join --address 127.0.0.1:2001\ | ||
// $(dvoting --config /tmp/node1 minogrpc token) | ||
// | ||
// # Create a chain with two members. | ||
// dvoting --config /tmp/node1 ordering setup\ | ||
// --member $(dvoting --config /tmp/node1 ordering export)\ | ||
// --member $(dvoting --config /tmp/node2 ordering export) | ||
// | ||
// # Add the third after the chain is set up. | ||
// dvoting --config /tmp/node1 ordering roster add\ | ||
// --member $(dvoting --config /tmp/node3 ordering export) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add correct documentation here.
// in two blocks. Node 4 does not share its certificate which means others won't | ||
// be able to communicate, but the chain should proceed because of the | ||
// threshold. | ||
func TestDvoting_Scenario_SetupAndTransactions(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this test actually work? It looks like a grpc-mino test to me.
// finally restarts both of them to make sure the chain can proceed after the | ||
// restart. It basically tests if the components are correctly loaded from the | ||
// persisten storage. | ||
func TestDvoting_Scenario_RestartNode(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also looks like a mino-grpc test.
Thank you for opening a pull request with this project, please also:
draft
mode andin progress
pipeline in the project (if applicable)Review
orReady4Merge
pipeline in the project (if applicable)draft