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

Switch network to minows #165

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Switch network to minows #165

wants to merge 3 commits into from

Conversation

XioZ
Copy link
Collaborator

@XioZ XioZ commented May 31, 2024

Thank you for opening a pull request with this project, please also:

  • add a brief description of your changes here
  • Modified local proxy script so network could run with minows
  • assign the PR to yourself, or to the person(s) working on it
  • start in draft mode and in progress pipeline in the project (if applicable)
  • if applicable, add this PR to its related issue by one of the special keywords Closing keywords
  • once it's ready
    • put it in the Review or Ready4Merge pipeline in the project (if applicable)
    • remove draft
    • assign a reviewer

@XioZ XioZ self-assigned this May 31, 2024
@XioZ XioZ requested a review from ineiti May 31, 2024 14:28
Copy link
Member

@ineiti ineiti left a 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.

Comment on lines +4 to +25
//
// # 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)
Copy link
Member

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) {
Copy link
Member

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) {
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants