Open
Description
The L1MessageProvider
uses a cursor pattern which is a impractical and can lead to misses in cases where we forgot to update the cursor. Instead of a cursor, we could just return an iterator over the messages, which we could easily get from the database by adding a method similar to get_l1_messages
which would take an index or a queue hash.
rollup-node/crates/database/db/src/operations.rs
Lines 172 to 181 in db1faaa
This solution should fit for both the sequencer and the derivation pipeline, both consumers of the trait.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status