Appearance
Glossary
This page explains the terms that the Cinder documentation uses. The terms are in alphabetical order.
ACCEPTED
A payload status of the Engine API. cinder-replay counts it together with SYNCING. See payload status.
Arena
A large memory area that the node uses for the work of one block. Examples are the state, the tries and the work of a thread pool. After each block, the node keeps up to 512 MB of the main arena for the next block. It keeps up to 64 MB of each other arena. Read Tuning.
Backfill
The download and execution of the blocks between the database head and the head that the consensus client sends. The node gets these blocks from peers (--p2p) or from a reth node (--backfill-rpc).
Back-pressure
The rule that stops the node from getting too far ahead of the writer thread. If more than 4 canonical blocks deeper than the persist depth are not written yet, a new engine_newPayload call waits for the writer thread. Forks do not count.
Batch
A group of blocks that the writer thread writes in one database write transaction. A batch has up to 64 blocks. A batch has one undo pass, one root replay and one durable commit.
Block tree
The blocks that the node keeps in memory above the database head. The tree can hold more than one fork. A forkchoice update selects the canonical branch.
BPO
Blob Parameter Only fork. A fork that changes only the blob schedule. Cinder implements the BPO1 and BPO2 schedules after Osaka.
Bytecode cache
The contract code that the node keeps in memory across blocks, by code hash. It uses up to 128 MB and works only when the cross-block cache is on.
Chain head
The head block that the consensus client selected with its last forkchoice update. Compare with database head.
Consensus client
The client that follows the beacon chain, for example Lighthouse. It sends blocks and head updates to the execution client over the Engine API.
Cross-block cache
The cache of accounts, storage slots and trie nodes of the database head. It stays in memory from one block to the next. --cache-mb sets its size. The default is 1024 MB.
Database head
The last block that the node wrote to its database. With persist depth 0, it is near the chain head. From v0.9.3, the JSON-RPC tag latest is the chain head, with the blocks in memory. cinder --serve uses the database head (read JSON-RPC). The log line forkchoice shows it as persisted #N.
Dial backoff
The time for which the node does not dial a node again after a failed dial. It is 10 minutes for a full node and 30 minutes for other handshake errors. It is 1 hour for an unreachable node and 1 day for a different network or fork. The node keeps the backoffs in the node file. Read P2P.
Diff
The changes that one block makes to the state: accounts, storage slots and code.
discv4
The node discovery protocol, version 4. With --p2p, Cinder uses it to find peers. A crawl starts from the mainnet bootnodes and the nodes that the node already knows.
DNS node list
A list of Ethereum nodes, signed and published in DNS (EIP-1459). reth uses it too. With --p2p, Cinder reads the mainnet list at most every 30 minutes and adds the nodes to its dial candidates.
EEST
The Ethereum execution-spec-tests. A test suite for execution clients with state tests, blockchain tests and Engine API fixtures. Cinder passes all of the tests of EEST v5.4.0 from Paris to Osaka.
Engine API
The authenticated JSON-RPC API between a consensus client and an execution client. Cinder serves it in engine mode, on 127.0.0.1:8552 by default. Each call needs a JWT token.
Engine mode
The normal mode of cinder (--engine). The node serves the Engine API and, with options, P2P and JSON-RPC.
Enode
The address of an Ethereum P2P node: its public key, IP address and port. Cinder prints its enode at start with --p2p, with <this host> in place of the IP address.
ENR
Ethereum Node Record (EIP-778). The signed record of a node: its address, its keys and, in the eth entry, its fork id. Cinder asks each discovered node for its ENR (EIP-868) and does not dial nodes of a different fork. Cinder does not answer ENR requests yet (#61).
Executing-thread core
The CPU that the node keeps for the thread that executes blocks. Its SMT siblings stay free, and the other threads of the node run on the other CPUs. --no-exec-iso turns it off. Read Tuning.
Execution witness
The part of the state and the code that one block reads, with the trie nodes that prove them. Reth makes witnesses. poc-exec executes blocks from witnesses without a database.
Finalized block
The newest block that the beacon chain finalized. The node writes the blocks at or below the finalized block to the database. It also writes every canonical block deeper than the persist depth. With the default persist depth 0, this is every canonical block. The JSON-RPC tag finalized means this block.
Fork id
A short value that names the fork history of a chain (EIP-2124). Peers compare it in the handshake. Cinder also reads it from the ENR of a node before it dials.
Forkchoice
The engine_forkchoiceUpdated call. The consensus client uses it to tell the execution client the head, safe and finalized blocks. With payload attributes, the call also starts the build of a new block. The node prints one forkchoice line for each call.
Interleaved A/B
The method that the project uses to measure a change on the live node. A temporary switch sends odd blocks through the new code and even blocks through the old code. Thus both arms see the same minutes, the same load and the same block stream. The project uses this method because the latency of a live window changes with the blocks and the machine load.
JUMPDEST analysis
The list of valid jump targets in contract code. The node keeps the analyses across blocks, by code hash, so it does not analyze the same contract again.
JWT
JSON Web Token. The Engine API uses JWT with a shared secret. The secret is a hex string in a file. Cinder and the consensus client must use the same file.
Log filter row
A row of the database table lflt for each block (from 0.9.5). It holds a 24-bit fingerprint of each address and each topic of the logs of the block. eth_getLogs reads the receipts only of the blocks whose row can match the filter. cinder --build-log-filters writes the rows of the older blocks of a database. Read Log filter rows.
Mempool prewarm
The prewarm of transactions from the pool between blocks. It loads their state into the cache before a block with these transactions arrives. --no-warm turns it off.
newPayload
The engine_newPayload call. The consensus client uses it to give a new block to the execution client. The node executes the block, checks it and answers with a payload status. The node prints one newPayload line for each call.
Node cache
The part of the cross-block cache that holds trie nodes.
Node file
The file p2p-nodes in the database directory. It holds the known P2P nodes, their dial backoff and the time when each peer last served a block. After a restart, the node dials the good peers in this file first.
Payload status
The answer to engine_newPayload and engine_forkchoiceUpdated:
VALID: the node executed the block and the result is equal to the header.INVALID: the block breaks a rule, or the result is not equal to the header.SYNCING: the node does not have the parent or the head block yet.ACCEPTED: the node accepted the block but did not execute it yet.
Persist depth
The number of canonical blocks that the node keeps in memory below the chain head before it writes them. --persist-depth sets it. The default is 0.
Prewarm
Speculative execution of the transactions of a block on other threads, at the same time as the real execution. The runs load state into memory, so the executing thread waits less for database reads. The prewarm runs at a lower priority than execution. A second pass runs a transaction again if its first run started before earlier transactions published their writes.
Reorg
A change of the canonical chain to a different fork. If the fork starts in the block tree, the node changes branch in memory. If it starts below the database head, the node unwinds the database.
Serve mode
The read-only mode of cinder (--serve). It answers the JSON-RPC API from a database that a different cinder process writes.
Shadow mode
An optional mode of cinder (--shadow) that follows a reth node over JSON-RPC. It executes each block against the Cinder database and compares the result with the header and, with --receipts, with the receipts of reth. It is a check, for example after an import. The normal mode is the engine mode.
State root
The root hash of the Merkle Patricia Trie of all accounts. Each block header holds the state root after the block. Cinder computes it for each block and compares it with the header.
Streaming state root
The state root that the node prepares while the block executes. The executing thread adds a pointer to a write log for each new key that it writes. A coordinator thread reads the trie paths of these keys during execution. After the last transaction, the node must do only the hashing. If the stream fails or is late, the node computes the root without it. Read Block pipeline.
Storage v2
The default database layout of reth 2.x. cinder-import reads only this layout.
Trie prefetch
The parallel read of the trie paths of the accounts and slots that a block changes. It runs before the state root, so the root computation finds the nodes in memory.
Undo record
The reverse diff of a written block: the values that the block changed, as they were before the block. The node uses undo records to unwind the database and to answer state queries for recent blocks.
Undo window
The last 128 written blocks, for which the node keeps undo records. JSON-RPC state queries work in this window. A fork deeper than the window gets the status SYNCING.
Unwind
The removal of written blocks from the database with their undo records. The node unwinds when a forkchoice update selects a fork below the database head. The writer thread removes the old blocks and writes the fork in one transaction, after the forkchoice response.
Writer thread
The thread that writes canonical blocks to the database in the background. It works in batches. The engine loop gives it the due blocks between requests. For the wait of the next block, read Writing blocks. The log line written shows each finished batch.