Skip to content
This repository has been 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
merged 2 commits into from
Dec 3, 2021

Conversation

bkchr
Copy link
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
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