Уровень выполнения (Execution Layer)

Компонент модульного блокчейна, отвечающий за обработку транзакций, выполнение смарт-контрактов и обновление состояния сети, отделенный от консенсуса и доступности данных.

До «Слияния» в сентябре 2022 года клиенты выполнения Эфириума (такие как Geth) обрабатывали как выполнение транзакций, так и консенсус Proof-of-Work. Слияние удалило логику PoW, превратив Geth в чистый клиент Уровня выполнения.

        graph LR
  Center["Уровень выполнения (Execution Layer)"]:::main
  Pre_smart_contracts["smart-contracts"]:::pre --> Center
  click Pre_smart_contracts "/terms/smart-contracts"
  Rel_consensus_layer["consensus-layer"]:::related -.-> Center
  click Rel_consensus_layer "/terms/consensus-layer"
  Rel_data_availability_layer["data-availability-layer"]:::related -.-> Center
  click Rel_data_availability_layer "/terms/data-availability-layer"
  Rel_account_abstraction["account-abstraction"]:::related -.-> Center
  click Rel_account_abstraction "/terms/account-abstraction"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 Простыми словами

Представьте блокчейн как ресторан. Уровень выполнения — это кухня: она принимает заказы (транзакции), готовит по рецептам (смарт-контракты) и отдает блюда (обновляет состояние). Уровень консенсуса — это менеджер: он не готовит, но проверяет, соблюдала ли кухня правила, согласовывает работу с другими менеджерами и закрывает чеки. В современном Эфириуме кухня и менеджер — это две отдельные программы, которые общаются между собой.

🤓 Expert Deep Dive

Engine API: Разделение EL и CL требует защищенного канала. CL выступает в роли «водителя». Он использует engine_newPayload для передачи блока в EL на валидацию, и engine_forkchoiceUpdated, чтобы указать EL текущую вершину цепи. Клиенты выполнения (Execution Clients): Разнообразие клиентов (Geth, Nethermind, Erigon, Besu) критично для предотвращения остановки сети из-за бага в доминирующем клиенте (таком как Geth). Rollup как EL: В модульной архитектуре Rollup-сети (Arbitrum, Optimism) являются чистыми уровнями выполнения, которые масштабируют вычисления, перенося их за пределы базового уровня (L1).

❓ Частые вопросы

What is the difference between the Execution Layer and the Consensus Layer?

The Execution Layer processes transactions, runs smart contracts (EVM), and updates user balances. The Consensus Layer does not process transactions; instead, it coordinates validators to vote on which blocks are valid and ensures the network agrees on a single, final history of the chain.

What were the Execution Layer and Consensus Layer called before The Merge?

Historically, the Execution Layer was referred to as 'Eth1' (the original Ethereum PoW chain), and the Consensus Layer was referred to as 'Eth2' (the Beacon Chain). The Ethereum Foundation deprecated these terms in favor of EL and CL to emphasize that they are two components of a single, unified network, not sequential upgrades.

How do Layer 2 Rollups fit into this model?

Layer 2 Rollups (like Arbitrum or Base) are essentially standalone execution layers. They handle all the heavy transaction processing off-chain, and then use Ethereum (Layer 1) strictly for consensus, data availability, and final settlement.

🔗 Связанные термины

Предварительные знания:

📚 Источники