sync

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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