Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckMaxRoundsOfInactivity ¶
CheckMaxRoundsOfInactivity will check the provided max rounds of inactivity value and return an error if it is not correct
func IsMainNode ¶
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.
Click to show internal directories.
Click to hide internal directories.