Рівень виконання (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 поточну вершину ланцюга і дати команду на створення нового блоку. Клієнти виконання: Різноманітність клієнтів (Geth, Nethermind, Erigon, Besu) критична для запобігання фатальним помилкам. Якщо в Geth (який має значну частку мережі) виникне баг, що призведе до невірного кореня стану, мережа може зупинитися. Rollup як EL: У модульній парадигмі виконання масштабується шляхом винесення його за межі базового рівня. Arbitrum або Optimism — це суто рівні виконання, які обробляють транзакції, а докази та дані відправляють в Ефіріум.
❓ Часті питання
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.