Documentation ¶
Overview ¶
Package state manages the meta-data required by consensus for an axia dag.
Index ¶
- func NewSerializer(config SerializerConfig) vertex.Manager
- type Serializer
- func (s *Serializer) BuildStopVtx(parentIDs []ids.ID) (axia.Vertex, error)
- func (s *Serializer) BuildVtx(parentIDs []ids.ID, txs []snowstorm.Tx) (axia.Vertex, error)
- func (s *Serializer) Edge() []ids.ID
- func (s *Serializer) GetVtx(vtxID ids.ID) (axia.Vertex, error)
- func (s *Serializer) ParseVtx(b []byte) (axia.Vertex, error)
- type SerializerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSerializer ¶
func NewSerializer(config SerializerConfig) vertex.Manager
Types ¶
type Serializer ¶
type Serializer struct { SerializerConfig // contains filtered or unexported fields }
Serializer manages the state of multiple vertices
func (*Serializer) BuildStopVtx ¶
func (*Serializer) Edge ¶
func (s *Serializer) Edge() []ids.ID
Click to show internal directories.
Click to hide internal directories.