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: Light block builder #8662

Merged
merged 2 commits into from
Sep 23, 2024
Merged

feat: Light block builder #8662

merged 2 commits into from
Sep 23, 2024

Conversation

spalladino
Copy link
Collaborator

@spalladino spalladino commented Sep 19, 2024

Adds a block builder that assembles an L2Block out of a set of processed txs without relying on base, merge, block root, or parity circuits, and works using only ts code. Keeps the same interface as the current block builder for drop-in replacement within the orchestrator.

Replaces the orchestator-based block builder on the sequencer. In a 32-tx block with a simple public function per tx, this reduces block building time from 38 to 18 seconds.

aztec:sequencer [VERBOSE] Assembled block 5 (txEffectsHash: 00a201e4acd5f1d58d8369d385f3fa0a7c10c84c1a95c15c75844603660f5ff3) eventName=l2-block-built duration=18983.888042002916 publicProcessDuration=18955.1897890009 rollupCircuitsDuration=18983.70012800023 txCount=32 blockNumber=5 blockTimestamp=1726864978 noteEncryptedLogLength=256 noteEncryptedLogCount=0 encryptedLogLength=256 encryptedLogCount=0 unencryptedLogCount=0 unencryptedLogSize=384 +19s
aztec:sequencer [VERBOSE] Assembled block 5 (txEffectsHash: 00414283d876d3b97871a671bc18660222211c7baa9eb106da5215b998752320) eventName=l2-block-built duration=38610.87693199888 publicProcessDuration=19141.498885001987 rollupCircuitsDuration=38610.68504599854 txCount=32 blockNumber=5 blockTimestamp=1726865139 noteEncryptedLogLength=256 noteEncryptedLogCount=0 encryptedLogLength=256 encryptedLogCount=0 unencryptedLogCount=0 unencryptedLogSize=384 +39s

@spalladino spalladino force-pushed the palla/light-block-builder branch 2 times, most recently from 54bde06 to 55e1009 Compare September 19, 2024 22:02
Adds a block builder that assembles an L2Block out of a set of processed
txs without relying on base, merge, block root, or parity circuits, and
works using only ts code. Keeps the same interface as the current block
builder for drop-in replacement within the orchestrator.
@spalladino spalladino marked this pull request as ready for review September 20, 2024 20:27
Copy link
Contributor

@MirandaWood MirandaWood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 🚀

@spalladino spalladino merged commit 1e922a5 into master Sep 23, 2024
47 checks passed
@spalladino spalladino deleted the palla/light-block-builder branch September 23, 2024 12:02
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