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

Make ExecuteBlock::execute_block return the final block header #8244

Merged
1 commit merged into from
Mar 3, 2021

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Mar 2, 2021

This pr changes the ExecuteBlock trait to return the final header that
results from executing the given block.

polkadot companion: paritytech/polkadot#2548

This pr changes the `ExecuteBlock` trait to return the final header that
results from executing the given block.
@bkchr bkchr 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. labels Mar 2, 2021
bkchr added a commit to paritytech/polkadot that referenced this pull request Mar 2, 2021
@bkchr
Copy link
Member Author

bkchr commented Mar 3, 2021

bot merge force

@ghost
Copy link

ghost commented Mar 3, 2021

Trying merge.

@ghost ghost merged commit 5f05683 into master Mar 3, 2021
@ghost ghost deleted the bkchr-execute-block-improvements branch March 3, 2021 08:44
ghost pushed a commit to paritytech/polkadot that referenced this pull request Mar 3, 2021
* Companion for `ExecuteBlock` changes in Substrate

paritytech/substrate#8244

* "Update Substrate"

Co-authored-by: parity-processbot <>
/// # Panic
///
/// Panics when an extrinsics panics or the resulting header doesn't match the expected header.
fn execute_block(block: Block) -> Block::Header;
Copy link
Contributor

Choose a reason for hiding this comment

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

doesn't the block already include a header, where it is equal to the one being returned?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah you are right. I also thought about this yesterday and than I thought that I had found something that requires this, but after thinking about this again, I do not require to return the header here. :(

Copy link
Contributor

Choose a reason for hiding this comment

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

will we revert?

ggwpez pushed a commit to ggwpez/runtimes that referenced this pull request Mar 10, 2023
* Companion for `ExecuteBlock` changes in Substrate

paritytech/substrate#8244

* "Update Substrate"

Co-authored-by: parity-processbot <>
ggwpez pushed a commit to ggwpez/runtimes that referenced this pull request Jul 13, 2023
* Companion for `ExecuteBlock` changes in Substrate

paritytech/substrate#8244

* "Update Substrate"

Co-authored-by: parity-processbot <>
This pull request was closed.
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants