You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Initial ideas below
Block Times
Fetch the latest block number, and fetch the latest
n
blocks.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.
The text was updated successfully, but these errors were encountered: