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

feat: Allow multiple peers submit genesis block #4775

Merged

Conversation

dima74
Copy link
Contributor

@dima74 dima74 commented Jun 26, 2024

Description

Continuation of #4739:

  • Topology stored in genesis block will be used as initial topology, as a result multiple peers can submit genesis
  • Removed --submit-genesis flag
  • Changed scripts/test_env.py, it will submit genesis for all peers

Linked issue

Closes #4696

Benefits

Checklist

  • I've read CONTRIBUTING.md
  • I've used the standard signed-off commit format (or will squash just before merging)
  • All applicable CI checks pass (or I promised to make them pass later)
  • (optional) I've written unit tests for the code changes
  • I replied to all comments after code review, marking all implemented changes with thumbs up

@mversic mversic self-assigned this Jun 26, 2024
scripts/test_env.py Outdated Show resolved Hide resolved
Copy link
Contributor

@mversic mversic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should remove the --submit-genesis flag? A peer should check if the genesis file has been set and based on that submit a genesis

Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
@dima74 dima74 force-pushed the diralik/multiple-peers-submit-genesis branch from 096df69 to 89b0c30 Compare June 27, 2024 11:06
@dima74 dima74 requested a review from mversic June 27, 2024 11:09
@mversic mversic merged commit 877444b into hyperledger-iroha:main Jun 27, 2024
10 of 12 checks passed
@dima74
Copy link
Contributor Author

dima74 commented Jun 27, 2024

  • Removed --submit-genesis flag

@BAStos525 this is the only change needed from the deployment point of view

@dima74 dima74 deleted the diralik/multiple-peers-submit-genesis branch June 27, 2024 11:46
hollermay pushed a commit to hollermay/iroha that referenced this pull request Jun 28, 2024
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
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.

Allow multiple peers submit genesis
3 participants