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,16 +268,16 @@ export class L1IngestionService extends BaseService<L1IngestionServiceOptions> { ...@@ -268,16 +268,16 @@ export class L1IngestionService extends BaseService<L1IngestionServiceOptions> {
) )
} }
// I prefer to do this in serial to avoid non-determinism. We could have a discussion about // We should not sync TransactionEnqueued events beyond the deposit shutoff block.
// using Promise.all if necessary, but I don't see a good reason to do so unless parsing is if (depositTargetL1Block >= highestSyncedL1Block) {
// really, really slow for all event types. await this._syncEvents(
await this._syncEvents( 'CanonicalTransactionChain',
'CanonicalTransactionChain', 'TransactionEnqueued',
'TransactionEnqueued', highestSyncedL1Block,
highestSyncedL1Block, depositTargetL1Block,
depositTargetL1Block, handleEventsTransactionEnqueued
handleEventsTransactionEnqueued )
) }
await this._syncEvents( await this._syncEvents(
'CanonicalTransactionChain', '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