Expand description
Delta encoding for append-only historical logs.
Both historical_roots (Phase0 through Bellatrix) and
historical_summaries (Capella and later) are append-only logs that grow
according to the historical-period boundary defined by the consensus
protocol.
This module uses the base and target slots to determine how many historical items must have been appended. It therefore avoids comparing the complete serialized log contents.
The resulting delta contains only the newly appended SSZ items.
Functionsยง
- apply_
historical_ log - Applies a historical log delta to a serialized historical log in place.
- diff_
historical_ log - Computes a delta between two historical log states.