Skip to content

Abstract out domain_block_preprocessor module#1294

Merged
liuchengxu merged 7 commits intomainfrom
extract-domain-block-preprocessor
Mar 24, 2023
Merged

Abstract out domain_block_preprocessor module#1294
liuchengxu merged 7 commits intomainfrom
extract-domain-block-preprocessor

Conversation

@liuchengxu
Copy link
Contributor

This PR is a pure refactoring towards a reusable component domain_block_preprocessor that is responsible for converting a primary block to a specific domain block. The next step will be making the runtime api usages in this process flexible to support both the client and stateless runtime alternative so that it can be used by both the executor and fraud proof verifier.

Part of #1274

Code contributor checklist:

Ok(extrinsics)
}

pub struct SystemDomainBlockPreprocessor<Block, PBlock, Client, PClient> {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe move it under system_bundle_preprocessor since we the similar structure for processor as well for consistency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not the final form, some further refactoring changes are expected in the follow up PR so I kept it as a single file for simplicity.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants