Skip to main content

Module eth1_data_votes

Module eth1_data_votes 

Source
Expand description

Delta encoding for the Eth1 data vote list.

The vote list is monotonic within an Eth1 voting period but is reset when the voting period changes. This module encodes both cases compactly:

  • Appending newly added votes to the existing list.
  • Replacing the entire list after a reset.

Functionsยง

apply_eth1_votes
Applies an Eth1 data vote delta in place.
diff_eth1_votes
Computes the delta between two serialized Eth1 data vote lists.