sync

package
v0.15.20 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ValidRoundPlaceholder = -1

TODO: We use this value until the round is added to the spec

Variables

View Source
var SyncProtocolPrecommitSender = felt.FromUint64[starknet.Address](math.MaxUint64)

TODO: Remove this once we can extract precommits from the sync protocol messages.

Functions

This section is empty.

Types

type MessageExtractor added in v0.15.20

type MessageExtractor[V types.Hashable[H], H types.Hash, A types.Addr] struct {
	// contains filtered or unexported fields
}

func New

func New[V types.Hashable[H], H types.Hash, A types.Addr](
	validators votecounter.Validators[A],
	toValue func(*felt.Felt) V,
	proposalStore *proposal.ProposalStore[H],
) MessageExtractor[V, H, A]

func (*MessageExtractor[V, H, A]) Extract added in v0.15.20

func (s *MessageExtractor[V, H, A]) Extract(
	committedBlock *sync.BlockBody,
) (types.Proposal[V, H, A], []types.Precommit[H, A])

Jump to

Keyboard shortcuts

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