Skip to content

feat: verify L1 message index - #241

Merged
greged93 merged 6 commits into
scroll-tech:mainfrom
varun-doshi:varun/l1-insert
Aug 11, 2025
Merged

greged93 merged 6 commits into
scroll-tech:mainfrom
varun-doshi:varun/l1-insert

Conversation

@varun-doshi

Copy link
Copy Markdown
Contributor

Fixes #236

Now insert_l1_message will not update column values on receiving l1_message with and index which is already present in the DB i.e on conflict.

Test added test_database_duplicate_l1_index which confirms the updated logic (this test would have failed previously)

@greged93 greged93 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks a lot for the PR! just a comment on the error catching, otherwise looks good!

Comment thread crates/database/db/src/operations.rs Resolved
@varun-doshi
varun-doshi requested a review from greged93 August 8, 2025 15:10

@greged93 greged93 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lasts fix then we merge

Comment thread crates/database/db/src/operations.rs Resolved
Comment thread crates/database/db/src/operations.rs Resolved
@varun-doshi
varun-doshi requested a review from greged93 August 11, 2025 07:28

@greged93 greged93 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks again for the PR!

@greged93
greged93 merged commit f8680a0 into scroll-tech:main Aug 11, 2025
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.

[Indexer] Verify L1 message index

2 participants