Client Architecture
Optimism nodes made up of 2 primary components:
- DTL (Data Transport Layer) [also called the Ethereum data indexer]
- l2geth (modified geth client for L2)
Â
Data Transport Layer (DTL)
- reconstructs the Optimism blockchain from blocks published to the CTC contract.
- DTL searches for events emitted by the CTC contract that signal that new Optimism blocks have been published. It inspects these transactions that emitted these events to reconstruct blocks in the standard Ethereum block format.
Â
l2geth
- Continuously monitors the DTL for newly indexed blocks.
- When a new block is indexed, the client software will download it and execute the transactions included within it.
- The process is such:
- We load the Optimism state.
- Apply transaction against the state.
- Record the resulting state change.
- Repeat steps 1 to 3 for each new block indexed by the DTL.
Â
References