Warstwa Wykonawcza (Execution Layer)

Komponent modułowego blockchaina odpowiedzialny za przetwarzanie transakcji, wykonywanie smart kontraktów i aktualizację stanu sieci, oddzielony od konsensusu i dostępności danych.

Przed 'The Merge' (wrzesień 2022) klienty takie jak Geth obsługiwały zarówno wykonywanie transakcji, jak i konsensus Proof-of-Work. Fuzja usunęła logikę PoW, czyniąc Getha czystym klientem Warstwy Wykonawczej.

        graph LR
  Center["Warstwa Wykonawcza (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;

      

🧒 Wyjaśnij jak 5-latkowi

Pomyśl o blockchainie jak o restauracji. Warstwa Wykonawcza to kuchnia: przyjmuje zamówienia (transakcje), gotuje według przepisów (smart kontrakty) i wydaje dania (aktualizuje stan). Warstwa Konsensusu to menedżer: nie gotuje, ale sprawdza, czy kuchnia przestrzegała zasad i zamyka rachunki. We współczesnym [Ethereum](/pl/terms/ethereum) kuchnia i menedżer to dwa osobne programy, które ze sobą rozmawiają.

🤓 Expert Deep Dive

Engine API: Oddzielenie EL i CL wymaga bezpiecznego kanału. CL działa jako 'kierowca'. Używa engine_newPayload, aby przekazać blok do EL w celu walidacji, oraz engine_forkchoiceUpdated, aby wskazać szczyt łańcucha. Klienty Wykonawcze: Różnorodność klientów (Geth, Nethermind, Erigon, Besu) jest krytyczna, aby zapobiec awarii sieci z powodu błędu w jednym, dominującym oprogramowaniu (np. Geth). Rollupy jako EL: W architekturze modułowej Rollupy (Arbitrum, Optimism) to czyste warstwy wykonawcze, które skalują sieć poprzez przetwarzanie transakcji poza L1.

❓ Częste pytania

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.

🔗 Powiązane terminy

Wymagana wiedza:

📚 Źródła