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

refactor!: Supply SignedBlock instead of SignedTransaction to peer #4739

Merged
merged 8 commits into from
Jun 20, 2024

Conversation

dima74
Copy link
Contributor

@dima74 dima74 commented Jun 18, 2024

Description

This is first part of #4696:

  • Added topology field to genesis.json
  • Changed kagami genesis sign to generate SignedBlock
  • Adapted iroha_swarm and test_env.py to those changes

Planned changes for next PRs:

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

tools/swarm/src/compose.rs Show resolved Hide resolved
genesis/src/lib.rs Outdated Show resolved Hide resolved
genesis/Cargo.toml Outdated Show resolved Hide resolved
@Erigara Erigara self-assigned this Jun 18, 2024
@mversic mversic self-assigned this Jun 18, 2024
@dima74 dima74 requested a review from mversic June 19, 2024 09:14
mversic
mversic previously approved these changes Jun 19, 2024
data_model/src/block.rs Outdated Show resolved Hide resolved
@mversic
Copy link
Contributor

mversic commented Jun 19, 2024

A thing that I have noticed. We don't validate genesis instructions at all anymore because there is no initial executor. This is a bug, only the 1st instruction (which is upgrade) should not be validated, all others should. Opened #4743

mversic
mversic previously approved these changes Jun 19, 2024
@mversic mversic force-pushed the diralik/all-peers-submit-genesis branch from 3bb780c to d15e9a8 Compare June 19, 2024 11:20
configs/swarm/docker-compose.local.yml Outdated Show resolved Hide resolved
configs/swarm/docker-compose.local.yml Outdated Show resolved Hide resolved
core/src/block.rs Show resolved Hide resolved
data_model/src/block.rs Outdated Show resolved Hide resolved
tools/kagami/src/genesis/generate.rs Outdated Show resolved Hide resolved
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
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 requested review from Erigara and mversic June 20, 2024 11:58
@dima74 dima74 merged commit 0424c39 into hyperledger:main Jun 20, 2024
10 of 11 checks passed
@dima74 dima74 deleted the diralik/all-peers-submit-genesis branch June 20, 2024 12:45
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.

None yet

3 participants