Commit 169a0d75 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #4721 from ethereum-optimism/sc/dtl-deposit-shutoff-bug

fix(dtl): sync beyond deposit shutoff block
parents bd925190 4396e187
---
'@eth-optimism/data-transport-layer': patch
---
Fixes a bug in the DTL that would cause it to not be able to sync beyond the deposit shutoff block.
......@@ -268,9 +268,8 @@ export class L1IngestionService extends BaseService<L1IngestionServiceOptions> {
)
}
// I prefer to do this in serial to avoid non-determinism. We could have a discussion about
// using Promise.all if necessary, but I don't see a good reason to do so unless parsing is
// really, really slow for all event types.
// We should not sync TransactionEnqueued events beyond the deposit shutoff block.
if (depositTargetL1Block >= highestSyncedL1Block) {
await this._syncEvents(
'CanonicalTransactionChain',
'TransactionEnqueued',
......@@ -278,6 +277,7 @@ export class L1IngestionService extends BaseService<L1IngestionServiceOptions> {
depositTargetL1Block,
handleEventsTransactionEnqueued
)
}
await this._syncEvents(
'CanonicalTransactionChain',
......
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