Skip to content

Commit

Permalink
Define L1 Starting block via OwnershipTransferred rather than Address…
Browse files Browse the repository at this point in the history
…Set (#1129)

* Update service.ts

* Create thirty-years-look.md

Co-authored-by: smartcontracts <kelvinfichter@gmail.com>
  • Loading branch information
CAPtheorem and smartcontracts authored Jun 22, 2021
1 parent 017d323 commit 8582fc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thirty-years-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/data-transport-layer': minor
---

Define L1 Starting block via OwnershipTransferred (occurring on block 1) rather than AddressSet (occuring on block 2 onwards)
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export class L1IngestionService extends BaseService<L1IngestionServiceOptions> {

for (let i = 0; i < currentL1Block; i += 1000000) {
const events = await this.state.contracts.Lib_AddressManager.queryFilter(
this.state.contracts.Lib_AddressManager.filters.AddressSet(),
this.state.contracts.Lib_AddressManager.filters.OwnershipTransferred(),
i,
Math.min(i + 1000000, currentL1Block)
)
Expand Down

0 comments on commit 8582fc1

Please sign in to comment.