Documentation ¶
Overview ¶
Package state manages the meta-data required by consensus for an avalanche dag.
Index ¶
- type ID
- type Serializer
- func (s *Serializer) BuildVertex(parentSet ids.Set, txs []snowstorm.Tx) (avacon.Vertex, error)
- func (s *Serializer) Edge() []ids.ID
- func (s *Serializer) GetVertex(vtxID ids.ID) (avacon.Vertex, error)
- func (s *Serializer) Initialize(ctx *snow.Context, vm avaeng.DAGVM, db database.Database)
- func (s *Serializer) ParseVertex(b []byte) (avacon.Vertex, error)
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) BuildVertex ¶
BuildVertex implements the avalanche.State interface
func (*Serializer) Edge ¶
func (s *Serializer) Edge() []ids.ID
Edge implements the avalanche.State interface
func (*Serializer) Initialize ¶
Initialize implements the avalanche.State interface
func (*Serializer) ParseVertex ¶
func (s *Serializer) ParseVertex(b []byte) (avacon.Vertex, error)
ParseVertex implements the avalanche.State interface
Click to show internal directories.
Click to hide internal directories.