core

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SnapshotMajorFormat = "snapshot-major-block-%09d.bpt"
View Source
const ValidatorUpdateAdd = 1
View Source
const ValidatorUpdateRemove = 2

Variables

View Source
var Cron = cron.NewParser(cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)
View Source
var SnapshotMajorRegexp = regexp.MustCompile(`snapshot-major-block-\d+.bpt`)

Functions

func AnchorSigner added in v1.1.1

func AnchorSigner(g *GlobalValues, partition string) *globalSigner

func DiffValidators added in v1.1.1

func DiffValidators(g, h *GlobalValues, partitionID string) (map[[32]byte]ValidatorUpdate, error)

Types

type GlobalValues

type GlobalValues = network.GlobalValues

func NewGlobals

func NewGlobals(g *GlobalValues) *GlobalValues

type Hash

type Hash []byte

func (Hash) As32

func (h Hash) As32() [32]byte

func (Hash) Bytes

func (h Hash) Bytes() []byte

func (Hash) Combine

func (h Hash) Combine(g Hash) Hash

func (Hash) Copy

func (h Hash) Copy() Hash

type ValidatorUpdate

type ValidatorUpdate int

Directories

Path Synopsis
block

Jump to

Keyboard shortcuts

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