state

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: BSD-3-Clause Imports: 16 Imported by: 5

Documentation

Overview

Package state manages the meta-data required by consensus for an avalanche dag.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serializer

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

Serializer manages the state of multiple vertices

func (*Serializer) Build added in v1.1.1

func (s *Serializer) Build(
	epoch uint32,
	parentIDs []ids.ID,
	txs []snowstorm.Tx,
	restrictions []ids.ID,
) (avalanche.Vertex, error)

Build implements the avalanche.State interface

func (*Serializer) Edge

func (s *Serializer) Edge() []ids.ID

Edge implements the avalanche.State interface

func (*Serializer) Get added in v1.1.1

func (s *Serializer) Get(vtxID ids.ID) (avalanche.Vertex, error)

Get implements the avalanche.State interface

func (*Serializer) Initialize

func (s *Serializer) Initialize(ctx *snow.Context, vm vertex.DAGVM, db database.Database)

Initialize implements the avalanche.State interface

func (*Serializer) Parse added in v1.1.1

func (s *Serializer) Parse(b []byte) (avalanche.Vertex, error)

Parse implements the avalanche.State interface

Jump to

Keyboard shortcuts

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