common

package
v1.7.13-patch2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMaxRoundsOfInactivity

func CheckMaxRoundsOfInactivity(maxRoundsOfInactivity int) error

CheckMaxRoundsOfInactivity will check the provided max rounds of inactivity value and return an error if it is not correct

func IsMainNode

func IsMainNode(maxRoundsOfInactivity int) bool

IsMainNode returns true if the provided maxRoundsOfInactivity value is equal with the roundsOfInactivityForMainMachine constant (0)

func NewRedundancyHandler

func NewRedundancyHandler() *redundancyHandler

NewRedundancyHandler creates an instance of type redundancyHandler that is able to manage the current counter of rounds without inactivity. Not a concurrent safe implementation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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