active

package
v0.8.4-1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveRootsFeature

type ActiveRootsFeature struct {
	State *ActiveState
	Meta  interface {
		ActiveValidatorCount
		ActiveIndices
	}
}

func (*ActiveRootsFeature) UpdateActiveIndexRoot

func (f *ActiveRootsFeature) UpdateActiveIndexRoot(epoch Epoch)

type ActiveState

type ActiveState struct {
	ActiveIndexRoots [EPOCHS_PER_HISTORICAL_VECTOR]Root
}

Randomness and committees

func (*ActiveState) GetActiveIndexRoot

func (state *ActiveState) GetActiveIndexRoot(epoch Epoch) Root

CurrentEpoch is expected to be between (current_epoch - EPOCHS_PER_HISTORICAL_VECTOR + ACTIVATION_EXIT_DELAY, current_epoch + ACTIVATION_EXIT_DELAY].

Jump to

Keyboard shortcuts

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