election

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: GPL-3.0, GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

You should have received a copy of the GNU General Public License along with MAP Protocol. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveAllPending

func ActiveAllPending(vmRunner vm.EVMRunner, validators []common.Address) (bool, error)

func DistributeEpochRewards

func DistributeEpochRewards(vmRunner vm.EVMRunner, validators []common.Address, rewards map[common.Address]*big.Int) (*big.Int, error)

func ElectNValidatorSigners

func ElectNValidatorSigners(vmRunner vm.EVMRunner, additionalAboveMaxElectable int64) ([]common.Address, error)

func GetElectedValidators

func GetElectedValidators(vmRunner vm.EVMRunner) ([]common.Address, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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