Skip to main content

Module historical_log

Module historical_log 

Source
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.