Commit 553180e9 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

dtl: fix race condition (#2646)

Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 50d2b108
---
'@eth-optimism/data-transport-layer': patch
---
Fix race condition
...@@ -206,7 +206,6 @@ export const handleEventsSequencerBatchAppended: EventHandlerSet< ...@@ -206,7 +206,6 @@ export const handleEventsSequencerBatchAppended: EventHandlerSet<
} }
} }
await db.putTransactionBatchEntries([entry.transactionBatchEntry])
await db.putTransactionEntries(entry.transactionEntries) await db.putTransactionEntries(entry.transactionEntries)
// Add an additional field to the enqueued transactions in the database // Add an additional field to the enqueued transactions in the database
...@@ -219,6 +218,8 @@ export const handleEventsSequencerBatchAppended: EventHandlerSet< ...@@ -219,6 +218,8 @@ export const handleEventsSequencerBatchAppended: EventHandlerSet<
) )
} }
} }
await db.putTransactionBatchEntries([entry.transactionBatchEntry])
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment