Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/blue-needles-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eth-optimism/data-transport-layer": patch
---

Account for the off by one with regards to the l2geth block number and the CTC index
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class L1TransportServer extends BaseService<L1TransportServerOptions> {
break
case 'l2':
currentL2Block = await this.state.db.getLatestUnconfirmedTransaction()
highestL2BlockNumber = await this.state.db.getHighestSyncedUnconfirmedBlock()
highestL2BlockNumber = (await this.state.db.getHighestSyncedUnconfirmedBlock()) - 1
break
default:
throw new Error(`Unknown transaction backend ${backend}`)
Expand Down