This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
Consistent Block Time Block Derivation Function #42
karlfloersch
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Related work: EIP-4396 is a modification to EIP 1559 that works on time instead of blocks. This helps to keep the basefee calculation more smooth after the merge when the blocktime is constant instead of probabilistic and there is the possibility of a missed slot where a block comes after 24 seconds instead of the standard 12 seconds. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Design Goals
These
High Level Overview
The intuition for how the algorithm works is that you automatically derive blocks based on the L1 timestamp. So for example if on L1 you had the following three blocks with these timestamps:
We would derive the following blocks on L2 with these timestamps (given a 2 second blocktime):
Once we have laid out all of the blocks, the sequencer may choose (within their sequencing window) which blocks it included deposits, and which blocks contain sequencer transactions. If the sequencing window passes without inputs from the sequencer, then all deposits are included in the block with timestamp:
l1_block_timestamp - (l1_block_timestamp % l2_blocktime)
.Challenges
Beta Was this translation helpful? Give feedback.
All reactions