Skip to content

Add L1RollupTxId to RollupTransaction#196

Merged
willmeister merged 4 commits intomasterfrom
YAS-550/PassL1RollupTxIdToGeth
Jul 31, 2020
Merged

Add L1RollupTxId to RollupTransaction#196
willmeister merged 4 commits intomasterfrom
YAS-550/PassL1RollupTxIdToGeth

Conversation

@willmeister
Copy link

Description

Adds L1RollupTxId to RollupTransactions so it can be passed in submissions to geth.

Also renames BlockBatches and decreases their size from all of the batches that were in one L1 block to a single batch from a single event log from an L1 block.

Metadata

Fixes

Contributing Agreement

Copy link
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

Said it before & I'll say it again -- very grateful for the clear naming!

Left one tiny clarifying comment but this seemed to be a super straightforward PR!

],
rollupTransactions: res.map((row: Row, indexWithinSubmission: number) => {
const tx: RollupTransaction = {
l1RollupTxId: parseInt(row['id'], 10),
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah so adding the ID was basically trivial because we already had one assigned by the DB--that right?

Copy link
Author

@willmeister willmeister Jul 30, 2020

Choose a reason for hiding this comment

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

Yep, it's just a matter of slapping the DB's primary key onto the data structure.

@willmeister willmeister merged commit b69c3af into master Jul 31, 2020
@willmeister willmeister deleted the YAS-550/PassL1RollupTxIdToGeth branch July 31, 2020 14:25
Lredhdx pushed a commit to node-real/combo-optimism that referenced this pull request Jun 17, 2024
theochap pushed a commit that referenced this pull request Dec 10, 2025
Zena-park added a commit to tokamak-network/optimism that referenced this pull request Dec 30, 2025
Zena-park added a commit to tokamak-network/optimism that referenced this pull request Dec 30, 2025
theochap pushed a commit that referenced this pull request Jan 15, 2026
### Description

Ports the batch transactions to `op-alloy-protocol`.

### Provenance

Part of a port migrating the batch types from `kona-derive` to
`op-alloy`. See
[`kona#695`](op-rs/kona#695).
emhane added a commit that referenced this pull request Feb 2, 2026
Based on op-rs/op-reth#183

This PR adds a backfill job that accepts a DB transaction and copies the
current state to the database. The transaction ensures we see a
consistent view of the database at the current block, even if the node
is syncing. This requires `--db.read-transaction-timeout 0`.

This currently doesn't handle interrupting the job because the state may
update while syncing and may read a different version of the database
upon restart.

---------

Co-authored-by: Arun Dhyani <dhyaniarun7@gmail.com>
Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com>
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