staking

package
v0.0.0-...-91d38f8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StakingValidator

type StakingValidator struct {
	Epoch          uint64
	ProposerPolicy tendermint.ProposerPolicy
}

StakingValidator is implementation of ValidatorSetInfo

func NewStakingValidatorInfo

func NewStakingValidatorInfo(epoch uint64, proposerPolicy tendermint.ProposerPolicy) *StakingValidator

NewStakingValidatorInfo returns new StakingValidator

func (*StakingValidator) GetValSet

func (v *StakingValidator) GetValSet(chainReader consensus.ChainReader, number *big.Int) (tendermint.ValidatorSet, error)

GetValSet returns the validators available in the block if it already been created

Jump to

Keyboard shortcuts

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