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
Click to show internal directories.
Click to hide internal directories.