Class
BlockTreeEntry
An entry in the block tree (block index) — a block the kernel has validated, whether on the active chain or on a side chain.
final class BlockTreeEntry
Mentioned In
Overview
Obtained from bestEntry, blockTreeEntry(byHash:), or entry(atHeight:). Exposes height, hash, header, and walkable parent pointer (previous). Use contains(_:) to test whether an entry is on the active chain.
A view type: its lifetime is tied to the ChainstateManager that produced it. Retains the manager to keep the C pointer valid; deinit performs no kernel destruction. For storing entry data past the manager’s lifetime, promote to BlockTreeEntrySnapshot.
Topics
Instance Properties
Instance Methods