Documentation ¶
Overview ¶
Package state manages the meta-data required by consensus for an avalanche dag.
Index ¶
- func NewSerializer(config SerializerConfig) vertex.Manager
- type Serializer
- func (s *Serializer) BuildStopVtx(parentIDs []ids.ID) (avalanche.Vertex, error)
- 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) ParseVtx(b []byte) (avalanche.Vertex, error)
- func (s *Serializer) StopVertexAccepted() (bool, error)
- type SerializerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSerializer ¶ added in v1.7.8
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 ¶ added in v1.7.4
func (*Serializer) Edge ¶
func (s *Serializer) Edge() []ids.ID
func (*Serializer) ParseVtx ¶ added in v1.3.2
func (s *Serializer) ParseVtx(b []byte) (avalanche.Vertex, error)
func (*Serializer) StopVertexAccepted ¶ added in v1.7.14
func (s *Serializer) StopVertexAccepted() (bool, error)
Click to show internal directories.
Click to hide internal directories.