Architecture

This page reviews node architecture for all nodes running on the StratoVM network. All nodes are composed of two core software services, the Rollup Node and the Execution Client. StratoVM also optionally supports a third component, Legacy Geth, that can serve stateful queries for blocks and transactions created before the Bedrock Upgrade

Node Flow Diagram

The following diagram shows how the Rollup Node, Execution Client, and Legacy Geth components work together to form a complete node running on the network. This diagram uses the op-node and op-geth implementations of the Rollup Node and Execution Client respectively, but the same architecture generally applies to other implementations as well.

Rollup Node

The Rollup Node is responsible for deriving L2 block payloads from L1 data and passing those payloads to the Execution Client. The Rollup Node can also optionally participate in a peer-to-peer network to receive blocks directly from the Sequencer before those blocks are submitted to L1. The Rollup Node is largely analogous to a consensus client in Ethereum.

Execution Client

The Execution Client is responsible for executing the block payloads it receives from the Rollup Node over JSON-RPC via the standard Ethereum Engine API The Execution Client exposes the standard JSON-RPC API that Ethereum developers are familiar with, and can be used to query blockchain data and submit transactions to the network. The Execution Client is largely analogous to an execution client in Ethereum.

Legacy Geth

OP Mainnet underwent a large database migration as part of the Bedrock Upgrade in 2023. Blocks and transactions included in OP Mainnet prior to the Bedrock Upgrade are served by current execution engines but cannot be executed without the help of a special component called Legacy Geth. This means that you will need to run Legacy Geth if you want to be able to run RPC calls such as eth_call on blocks before the Bedrock Upgrade.

Legacy Geth is the software that was used to run OP Mainnet nodes prior to the Bedrock Upgrade. If you run an instance of Legacy Geth alongside your node, your node will be able to forward requests against historical transactions to the Legacy Geth instance. Legacy Geth is not required and is typically only necessary if you want to maintain a complete archive node for the network

Next Steps

  • To get your node up and running on your own, start with the run a node from docker or build a node from source tutorial.

Last updated