Skip to content

Introduce new field to BlockInfo structure #397

@shd

Description

@shd

Add 'intent' field to BlockInfo structure, as an enum with two variants: 'Validate' and 'Apply'.

This field is to be generated by mithril/upstream fetcher as 'Apply' (important for the ticket).
And in consensus module it should be generated as 'Validate' (may be easily left out of the ticket).

Later (outside the scope of this ticket) this field is to be checked by other modules, and maybe they would have different behaviour based on that (e.g. update internal structures or send validation messages).

Expected outcome: the project works like before with upstream.

It's not important to fully make correct PR, just have something compiling/working in github to allow work on other modules.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions