consensus

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: 27 Imported by: 0 modules, 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusServices

func Init

func Init(
	host host.Host,
	logger *log.ZapLogger,
	database db.KeyValueStore,
	blockchain *blockchain.Blockchain,
	vm vm.VM,
	blockFetcher *sync.BlockFetcher,
	nodeAddress *starknet.Address,
	validators votecounter.Validators[starknet.Address],
	timeoutFn driver.TimeoutFn,
	bootstrapPeersFn func() []peer.AddrInfo,
	compiler compiler.Compiler,
) (ConsensusServices, error)

type MockServices

type MockServices struct {
	PrivateKey  crypto.PrivKey
	NodeAddress starknet.Address
	Validators  votecounter.Validators[starknet.Address]
	TimeoutFn   driver.TimeoutFn
}

func InitMockServices

func InitMockServices(hiSeed, loSeed uint64, nodeIndex, nodeCount int) MockServices

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
p2p
Package propeller implements an erasure-coding based message broadcast protocol for Byzantine fault-tolerant consensus.
Package propeller implements an erasure-coding based message broadcast protocol for Byzantine fault-tolerant consensus.
merkle
Package merkle implements Merkle tree construction and verification using a SHA-256 tagging scheme.
Package merkle implements Merkle tree construction and verification using a SHA-256 tagging scheme.
wal

Jump to

Keyboard shortcuts

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