validatorStrategies

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxBasedValidatorsStrategy

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

TxBasedValidatorsStrategy represents a strategy to reward validators with CETH

func (*TxBasedValidatorsStrategy) CollectTx

func (strategy *TxBasedValidatorsStrategy) CollectTx(tx *ethTypes.Transaction)

CollectTx collects the rewards for a transaction

func (*TxBasedValidatorsStrategy) GetUpdatedValidators

func (strategy *TxBasedValidatorsStrategy) GetUpdatedValidators() []*types.Validator

GetUpdatedValidators returns the current validators

func (*TxBasedValidatorsStrategy) SetValidators

func (strategy *TxBasedValidatorsStrategy) SetValidators(validators []*types.Validator)

SetValidators updates the current validators

Jump to

Keyboard shortcuts

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