🦦
Erigon 2 Documentation
  • Welcome to Erigon 2
    • Disclaimer
    • Project Links
  • ELI5 NODES
    • How to run an Ethereum node
    • How to run a Gnosis Chain node
    • How to run a Polygon node
  • Basic usage
    • Getting started
      • Linux and MacOS
      • Windows
      • Docker
    • Usage
      • Type of Node
    • Upgrading from a previous version
    • Supported Networks
    • Default Ports and Firewalls
    • Otterscan
    • Wallet
  • Advanced Usage
    • Configure Erigon
    • Consensus Layer
      • Prysm
      • Lighthouse
      • JWT secret
      • Block production
    • Options
    • RPC daemon
    • TxPool
    • Sentry
    • Downloader
    • TLS Authentication
    • ❔FAQ
    • External resources
      • Erigon on a Raspberry Pi 4
  • DIAGNOSTIC TOOL
    • Introduction
    • Installation
    • Setup
    • User Interface
  • About
    • Contributing to Erigon
    • Donate
    • License
    • Privacy policy
Powered by GitBook
On this page

Was this helpful?

  1. Advanced Usage
  2. Consensus Layer

Caplin

The embedded Consensus Layer

Last updated 8 months ago

Was this helpful?

Caplin is a full-fledged consensus validation client like Prysm, Lighthouse, Teku, Nimbus, and Lodestar. Its goal is to:

  • Provide better stability

  • Validate the chain

  • Stay in sync

  • Keep the execution of blocks at the top of the chain

  • Serve the Beacon API with a fast and compact data model, while keeping CPU and memory usage low.

The main reason for developing a new consensus layer is to experiment with the possible benefits it might bring. For example, the Engine API does not work well with Erigon. The Engine API sends data one block at a time, while Erigon is designed to handle many blocks at once and needs to sort and process data efficiently. Therefore, it would be better for Erigon to handle the blocks independently instead of relying on the Engine API.

Info: more info about Caplin, the Erigon CL, can be found and .

Caplin Usage

Caplin can be enabled with the --internalcl flag, at which point an external consensus layer is no longer needed.

./build/bin/erigon --internalcl

Caplin also has an archive mode for historical states and blocks, which can be enabled with the --caplin.archive flag.

Caplin can also be used for block production.

here
here
Block production | Erigon Documentation
Logo