consensus

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusServices

func Init

func Init(
	logger *utils.ZapLogger,
	database db.KeyValueStore,
	blockchain *blockchain.Blockchain,
	vm vm.VM,
	nodeAddress *starknet.Address,
	validators votecounter.Validators[starknet.Address],
	timeoutFn driver.TimeoutFn,
	hostAddress string,
	hostPrivateKey crypto.PrivKey,
	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

Jump to

Keyboard shortcuts

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