process

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: GPL-3.0 Imports: 16 Imported by: 2 modules, 3 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

View Source
var ErrNilNodeHandler = errors.New("nil node handler")

ErrNilNodeHandler signals that a nil node handler has been provided

Functions

func GeneratePubKeyBitmap added in v1.9.0

func GeneratePubKeyBitmap(numOfOnes int) []byte

GeneratePubKeyBitmap generates a []byte where the first `numOfOnes` bits are set to 1.

func NewBlocksCreator

func NewBlocksCreator(nodeHandler NodeHandler, monitor HeartbeatMonitorWithSet) (*blocksCreator, error)

NewBlocksCreator will create a new instance of blocksCreator

func UnsetBitInBitmap added in v1.9.1

func UnsetBitInBitmap(index int, bitmap []byte) error

UnsetBitInBitmap will unset a bit from provided bit based on the provided index

Types

type HeartbeatMonitorWithSet added in v1.10.0

type HeartbeatMonitorWithSet interface {
	SetHeartbeats(heartbeats []data.PubKeyHeartbeat)
	IsInterfaceNil() bool
}

HeartbeatMonitorWithSet defines what a heartbeat monitor with set should be able to do

type NodeHandler

type NodeHandler interface {
	GetProcessComponents() factory.ProcessComponentsHolder
	GetChainHandler() chainData.ChainHandler
	GetBroadcastMessenger() consensus.BroadcastMessenger
	GetShardCoordinator() sharding.Coordinator
	GetCryptoComponents() factory.CryptoComponentsHolder
	GetCoreComponents() factory.CoreComponentsHolder
	GetDataComponents() factory.DataComponentsHolder
	GetStateComponents() factory.StateComponentsHolder
	GetFacadeHandler() shared.FacadeHandler
	GetStatusCoreComponents() factory.StatusCoreComponentsHolder
	GetNetworkComponents() factory.NetworkComponentsHolder
	SetKeyValueForAddress(addressBytes []byte, state map[string]string) error
	SetStateForAddress(address []byte, state *dtos.AddressState) error
	RemoveAccount(address []byte) error
	ForceChangeOfEpoch() error
	GetBasePeers() map[uint32]core.PeerID
	SetBasePeers(basePeers map[uint32]core.PeerID)
	Close() error
	IsInterfaceNil() bool
}

NodeHandler defines what a node handler should be able to do

Jump to

Keyboard shortcuts

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