Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Refactor BlockBuilder::propose_with#14405

Merged
paritytech-processbot[bot] merged 8 commits into
masterfrom
oty-refactor-block-builder
Jun 19, 2023
Merged

Refactor BlockBuilder::propose_with#14405
paritytech-processbot[bot] merged 8 commits into
masterfrom
oty-refactor-block-builder

Conversation

@ggwpez

@ggwpez ggwpez commented Jun 16, 2023

Copy link
Copy Markdown
Member

Non-controversial refactoring of the BlockBuilder to make #14275 easier to review.

Changes:

  • Splits the code of propose_with into apply_inherents, apply_extrinsicis and print_summary.
  • Prints no extrinsics instead of extrinsics (0): [] when there are none.
  • Adds log level.

ggwpez added 6 commits June 16, 2023 13:22
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Jun 16, 2023
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez requested a review from a team June 17, 2023 14:50

@melekes melekes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

Comment thread client/basic-authorship/src/basic_authorship.rs Outdated
Comment thread client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <git@kchr.de>
@ggwpez

ggwpez commented Jun 19, 2023

Copy link
Copy Markdown
Member Author

bot merge

@paritytech-processbot

Copy link
Copy Markdown

Waiting for commit status.

@paritytech-processbot paritytech-processbot Bot merged commit 2e7fde8 into master Jun 19, 2023
@paritytech-processbot paritytech-processbot Bot deleted the oty-refactor-block-builder branch June 19, 2023 10:12
@ggwpez ggwpez mentioned this pull request Jun 20, 2023
2 tasks
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
* Add log target

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Factor out apply_inherents

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Factor out apply_extrinsics

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Factor out print_summary

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Pimp print_summary

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Cleanup

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fixes

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update client/basic-authorship/src/basic_authorship.rs

Co-authored-by: Bastian Köcher <git@kchr.de>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Bastian Köcher <git@kchr.de>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants