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: block production #69

Open
mds1 opened this issue May 20, 2024 · 0 comments
Open

feat: block production #69

mds1 opened this issue May 20, 2024 · 0 comments
Labels
data update Add or modify data fetched for chains

Comments

@mds1
Copy link
Owner

mds1 commented May 20, 2024

Initial ideas below

Block Times

Fetch the latest block number, and fetch the latest n blocks.

  • If block time deltas are the same, assume that delta is a constant block time.
  • If block times are the same mod x, assume x is the block time (e.g. some blocks may have been missed, like on mainnet)
  • If block times vary, take the median value.
  • For some chains the JSON files will change every time bun fetch-data is run. We will need to add handling for this expected difference to avoid the hourly CI checks from constantly reporting diffs.

Gas Limits and Targets

For OP Stack chains we can get the gas limit from the L1 SystemConfig contract, but there's no way to automatically discover that contract address without adding it as an additional input. Unsure how to do this for other chains.

@mds1 mds1 added the data update Add or modify data fetched for chains label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data update Add or modify data fetched for chains
Projects
None yet
Development

No branches or pull requests

1 participant