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

Adds support for returning a custom header from validate_block#825

Merged
bkchr merged 2 commits into
masterfrom
bkchr-custom-header
Dec 3, 2021
Merged

Adds support for returning a custom header from validate_block#825
bkchr merged 2 commits into
masterfrom
bkchr-custom-header

Conversation

@bkchr
Copy link
Copy Markdown
Member

@bkchr bkchr commented Dec 2, 2021

This adds support for returning a custom header from validate_block. Before this, we always
returned the header of the block that was validated (and still do it by default). However, after
this pr it is possible to set a custom header or better custom head data that will be returned
instead from validate_block. This can be for example when a chain wants to fork.

This adds support for returning a custom header from `validate_block`. Before this, we always
returned the header of the block that was validated (and still do it by default). However, after
this pr it is possible to set a custom header or better custom head data that will be returned
instead from `validate_block`. This can be for example when a chain wants to fork.
Copy link
Copy Markdown
Contributor

@riusricardo riusricardo left a comment

Choose a reason for hiding this comment

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

LGTM. The usage is very straightforward 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants