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

Change database system to instead send back an updated version of the chain spec #1186

Open
tomaka opened this issue Sep 25, 2023 · 1 comment

Comments

@tomaka
Copy link
Contributor

tomaka commented Sep 25, 2023

The chain specification can already be made quite minimal. It mostly needs to contain just the list of bootnodes, the genesis root, and a checkpoint.

The current database format contains a list of known nodes, the genesis root, a checkpoint, and a runtime code hint. Basically, almost the same things.
If the idea in paritytech/polkadot-sdk#60 (comment) goes through, then the chain spec would also contain a runtime code hint.

Therefore, instead of having a separate database format, maybe we could simply overwrite the chain specification of the chain with new information.

The main drawback is that the chain spec format should match the one of Substrate, making it more difficult to add more fields to the database later if necessary. Right now I don't see any other field that we might want to add.

@tomaka tomaka added the blocked Progress on this issue requires something beyond our control label Sep 25, 2023
@tomaka tomaka removed the blocked Progress on this issue requires something beyond our control label Oct 17, 2023
@tomaka
Copy link
Contributor Author

tomaka commented Dec 18, 2023

cc #1486

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