span

package
v1.0.26-stable Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainSpanner

type ChainSpanner struct {
	// contains filtered or unexported fields
}

func NewChainSpanner

func NewChainSpanner(ethAPI api.Caller, staking abi.ABI, chainConfig *params.ChainConfig, validatorContractAddress common.Address) *ChainSpanner

func (*ChainSpanner) CommitAccum

func (c *ChainSpanner) CommitAccum(ctx context.Context, state *state.StateDB, header *types.Header, chainContext core.ChainContext, validators []common.Address) error

func (*ChainSpanner) GetCurrentValidators

func (c *ChainSpanner) GetCurrentValidators(ctx context.Context, headerHash common.Hash, blockNumber uint64) ([]*valset.Validator, error)

GetCurrentValidators get current validators

Jump to

Keyboard shortcuts

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