consensus

package
v0.15.16 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockTimeoutFn added in v0.15.3

func MockTimeoutFn(nodeCount int) func(types.Step, types.Round) time.Duration

Types

type ConsensusServices

func Init

func Init(
	host host.Host,
	logger *utils.ZapLogger,
	database db.KeyValueStore,
	blockchain *blockchain.Blockchain,
	vm vm.VM,
	nodeAddress *starknet.Address,
	validators votecounter.Validators[starknet.Address],
	timeoutFn driver.TimeoutFn,
	bootstrapPeersFn func() []peer.AddrInfo,
) (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
wal

Jump to

Keyboard shortcuts

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