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