hdiff

package
v6.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2025 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDiff

func ApplyDiff(ctx context.Context, source state.BeaconState, diff HdiffBytes) (state.BeaconState, error)

ApplyDiff appplies the given serialized diff to the source beacon state and returns the resulting state.

Types

type HdiffBytes

type HdiffBytes struct {
	StateDiff      []byte
	ValidatorDiffs []byte
	BalancesDiff   []byte
}

HdiffBytes represents the serialized difference between two beacon states.

func Diff

func Diff(source, target state.ReadOnlyBeaconState) (HdiffBytes, error)

Diff computes the difference between two beacon states and returns it as a serialized HdiffBytes object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL