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

add flag for mainnet forking #2490

Closed
Tracked by #2488
LHerskind opened this issue Sep 25, 2023 · 0 comments
Closed
Tracked by #2488

add flag for mainnet forking #2490

LHerskind opened this issue Sep 25, 2023 · 0 comments
Assignees

Comments

@LHerskind
Copy link
Contributor

LHerskind commented Sep 25, 2023

For better support with portals, it can be very useful to fork mainnet - as any L1 contract can then be used.

This require that anvil is setup to fork, but also that the archiver is told to sync from the same block as anvil forks unless you want to perform a sync from 0.

This should be possible by adding a rpc-url to the aztec-sandbox run command and set the SEARCH_START_BLOCK env variable for the archiver config.

Should either pull the current block for the start of the search or use a provided block number argument to both forking and start block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants