protocol

package
v0.0.0-...-b4f0473 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol struct {
	Settings               config.SpecSettings
	SlotsPerHistoricalRoot uint64
	HeaderRedundancy       uint64
}

func New

func New(setting config.SpecSettings, headerRedundancy uint64) *Protocol

func (*Protocol) CalculateNextCheckpointSlot

func (p *Protocol) CalculateNextCheckpointSlot(slot uint64) uint64

func (*Protocol) ComputeEpochAtSlot

func (p *Protocol) ComputeEpochAtSlot(slot uint64) uint64

func (*Protocol) ComputeSyncPeriodAtSlot

func (p *Protocol) ComputeSyncPeriodAtSlot(slot uint64) uint64

func (*Protocol) DenebForked

func (p *Protocol) DenebForked(slot uint64) bool

func (*Protocol) IsStartOfEpoch

func (p *Protocol) IsStartOfEpoch(slot uint64) bool

func (*Protocol) SyncCommitteeSuperMajority

func (p *Protocol) SyncCommitteeSuperMajority(syncCommitteeHex string) (bool, error)

func (*Protocol) SyncPeriodLength

func (p *Protocol) SyncPeriodLength() uint64

Jump to

Keyboard shortcuts

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