keeper

package
v0.4.0-dev.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFilter

func ApplyFilter(input []byte, reveals []types.RevealBody) ([]int, bool, []string, error)

ApplyFilter processes filter of the type specified in the first byte of consensus filter. It returns an outlier list, which is a boolean list where true at index i means that the reveal at index i is an outlier, consensus boolean, consensus data proxy public keys, and error. It assumes that the reveals and their proxy public keys are sorted.

Types

type Keeper

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

func (Keeper) EndBlock

func (k Keeper) EndBlock(ctx sdk.Context) (err error)

func (Keeper) FilterAndTally

func (k Keeper) FilterAndTally(ctx sdk.Context, req types.Request) (TallyResult, error)

FilterAndTally applies filter and executes tally. It returns the tally VM result, consensus boolean, consensus data proxy public keys, and error if applicable.

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) ProcessTallies

func (k Keeper) ProcessTallies(ctx sdk.Context, coreContract sdk.AccAddress) error

ProcessTallies fetches from the core contract the list of requests to be tallied and then goes through it to filter and tally.

type TallyResult

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

Jump to

Keyboard shortcuts

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