Skip to main content

diff_eth1_votes

Function diff_eth1_votes 

Source
pub fn diff_eth1_votes(base: &[u8], target: &[u8]) -> Eth1DataVotesDiff
Expand description

Computes the delta between two serialized Eth1 data vote lists.

If the target list extends the base list, only the newly appended votes are recorded.

If the target list is shorter than the base list, the encoder assumes the vote list has been reset and stores the entire target list.