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

feat(mainnet): Make Madara compatible with Starknet mainnet #1593

Open
antiyro opened this issue May 6, 2024 · 1 comment
Open

feat(mainnet): Make Madara compatible with Starknet mainnet #1593

antiyro opened this issue May 6, 2024 · 1 comment
Labels
enhancement New feature or request stale

Comments

@antiyro
Copy link
Contributor

antiyro commented May 6, 2024

feat(mainnet): Make Madara compatible with Starknet mainnet

Now that madara is compatible with Starknet mainnet specs. We should be able to easily store and retrieve state from mainnet.

Pathfinder snapshot (#1592)

This is in theory feasible but practicaly impossible: Pathfinder storage uses sqlite which is a relational db rather than our key/value storage architecture so we would have to build a parser, analyser and storer to retrieve and reorganise without corruption of the state, and if we manage to do so substrate and rocksdb will go brrr and we'll probably need to modify some of it's checks during the building process which we dont want to.

Fetch from the FGW/P2p

The real solution is simple and part of our roadmap, we must make Madara compatible as a Starknet sequencer, so we will add a —mainnet flag and a crate client side to fetch data from outside, like the way we are doing in Deoxys. This crate will allow you to able or disable state commitments checks in order to start from a desired block of mainnet using —starting-block so you could deep test any mainnet context within Madara.

We wanted to implement this connection with the FGW, but the more I'm think about it the more I think that we should wait to have a spec ready p2p crate client side (we'll kickstart it right after our release soon) eta before starknet cc

I'll provide the detailed architecture below once decided.

@antiyro antiyro added the enhancement New feature or request label May 6, 2024
Copy link

github-actions bot commented Jun 6, 2024

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍
Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs.
Thank you for your contributions!

@github-actions github-actions bot added the stale label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

1 participant