Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scheme #517

Closed
majecty opened this issue Oct 5, 2020 · 1 comment
Closed

Fix scheme #517

majecty opened this issue Oct 5, 2020 · 1 comment
Assignees

Comments

@majecty
Copy link
Contributor

majecty commented Oct 5, 2020

The current scheme code has some flaws.

  1. It has an Engine as a field. Scheme is a configuration. It can have some configuration for the engine, but must not have engine directly.
  2. It is creating a genesis header. Since the module can configuration their genesis state, we are updating the genesis block's state root after the scheme creates the header. https://github.com/CodeChain-io/foundry/blob/master/core/src/client/client.rs#L106
@majecty majecty self-assigned this Oct 5, 2020
@majecty
Copy link
Contributor Author

majecty commented Dec 22, 2020

The scheme file is removed as a process of #538

@majecty majecty closed this as completed Dec 22, 2020
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

No branches or pull requests

1 participant