rules

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMajorityRule

func CheckMajorityRule(cert nodeinfo.Certificate, pop census.OnlinePopulation) (int, error)

CheckMajorityRule returns error if MajorityRule check not passed, also returns active discovery nodes count

func CheckMinRole

func CheckMinRole(cert nodeinfo.Certificate, nodes census.OnlinePopulation) error

CheckMinRole returns true if MinRole check passed

Types

This section is empty.

Jump to

Keyboard shortcuts

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