Skip to content

ethapi: set simulateV1 timestampIncrement to 0 for Arbitrum - #667

Open
blockchain-dev-tools wants to merge 2 commits into
OffchainLabs:masterfrom
blockchain-dev-tools:fix-simulate-v1-arbitrum-block-time
Open

ethapi: set simulateV1 timestampIncrement to 0 for Arbitrum#667
blockchain-dev-tools wants to merge 2 commits into
OffchainLabs:masterfrom
blockchain-dev-tools:fix-simulate-v1-arbitrum-block-time

Conversation

@blockchain-dev-tools

Copy link
Copy Markdown

Arbitrum produces a block every 250ms. At second granularity (geth's uint64 timestamp), 250ms rounds to 0, so consecutive simulated blocks share the same timestamp. The previous default of 12 (Ethereum's L1 block time) was incorrect for Arbitrum L2 simulation.

nitro references this repo as a git submodule; eth_simulateV1's default timestamp increment should reflect Arbitrum's 250ms block time, not Ethereum's 12s.

Arbitrum produces a block every 250ms. At second granularity (geth's uint64 timestamp), 250ms rounds to 0, so consecutive simulated blocks share the same timestamp. The previous default of 12 (Ethereum's L1 block time) was incorrect for Arbitrum L2 simulation.

nitro references this repo as a git submodule; eth_simulateV1's default timestamp increment should reflect Arbitrum's 250ms block time, not Ethereum's 12s.
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Preserve the upstream 12-second default for non-Arbitrum chains while using a zero-second increment for Arbitrum's sub-second block cadence. Add coverage for default blocks, gap filling, and explicit timestamp overrides.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <<EMAIL_ADDRESS>>
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

Successfully merging this pull request may close these issues.

2 participants