Skip to content

fix: Leader as transaction ordering service#4967

Merged
mversic merged 1 commit intohyperledger-iroha:mainfrom
SamHSmith:tx_order
Oct 8, 2024
Merged

fix: Leader as transaction ordering service#4967
mversic merged 1 commit intohyperledger-iroha:mainfrom
SamHSmith:tx_order

Conversation

@SamHSmith
Copy link
Copy Markdown
Contributor

Description

#4914

Linked issue

Closes #{issue_number}

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

@SamHSmith SamHSmith marked this pull request as draft August 13, 2024 08:16
@SamHSmith SamHSmith self-assigned this Aug 13, 2024
Comment thread core/src/sumeragi/main_loop.rs Outdated
@mversic
Copy link
Copy Markdown
Contributor

mversic commented Aug 13, 2024

you should follow the style of the code and add a new state to the block state machine. Let's consider this in more detail:

  1. remove categorize_transactions function
  2. make BlockBuilder::new -> BlockBuilder::chain -> BlockBuilder::sign produce SignedBlock(not ValidBlock)

@SamHSmith SamHSmith force-pushed the tx_order branch 2 times, most recently from c329d6c to 81e0bf2 Compare September 9, 2024 21:33
@SamHSmith SamHSmith marked this pull request as ready for review September 9, 2024 21:35
@SamHSmith SamHSmith force-pushed the tx_order branch 2 times, most recently from 619b997 to c89a385 Compare September 11, 2024 19:06
Comment thread crates/iroha_core/src/sumeragi/message.rs
Comment thread crates/iroha_core/src/sumeragi/message.rs
Copy link
Copy Markdown
Contributor

@Erigara Erigara left a comment

Choose a reason for hiding this comment

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

Is there is any performance boost measurements?

Comment thread crates/iroha_core/src/sumeragi/main_loop.rs Outdated
Comment thread crates/iroha_core/src/sumeragi/main_loop.rs
Comment thread crates/iroha_core/src/sumeragi/main_loop.rs
Comment thread crates/iroha_data_model/src/block.rs Outdated
Comment thread crates/iroha_core/src/block.rs Outdated
Comment thread crates/iroha_core/src/sumeragi/main_loop.rs Outdated
Comment thread crates/iroha_core/src/sumeragi/main_loop.rs Outdated
Comment thread crates/iroha_core/src/sumeragi/main_loop.rs Outdated
Comment thread crates/iroha_core/src/block.rs Outdated
Comment thread crates/iroha_core/src/sumeragi/main_loop.rs Outdated
Copy link
Copy Markdown
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 don't see that CommittedTransaction::error is being updated anywhere

Comment thread crates/iroha_core/src/sumeragi/main_loop.rs Outdated
@SamHSmith SamHSmith force-pushed the tx_order branch 6 times, most recently from 73139b6 to da1eff9 Compare October 7, 2024 07:45
@mversic mversic requested a review from Erigara October 7, 2024 08:54
Signed-off-by: Sam H. Smith <sam.henning.smith@protonmail.com>
@mversic mversic merged commit 242d857 into hyperledger-iroha:main Oct 8, 2024
@alexstroke1 alexstroke1 self-assigned this Oct 9, 2024
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.

4 participants