Documentation ¶
Overview ¶
Package state manages the meta-data required by consensus for an odyssey dag.
Index ¶
- func NewSerializer(config SerializerConfig) vertex.Manager
- type Serializer
- func (s *Serializer) BuildStopVtx(ctx context.Context, parentIDs []ids.ID) (odyssey.Vertex, error)
- func (s *Serializer) Edge(context.Context) []ids.ID
- func (s *Serializer) GetVtx(_ context.Context, vtxID ids.ID) (odyssey.Vertex, error)
- func (s *Serializer) ParseVtx(ctx context.Context, b []byte) (odyssey.Vertex, error)
- func (s *Serializer) StopVertexAccepted(ctx context.Context) (bool, 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) StopVertexAccepted ¶
func (s *Serializer) StopVertexAccepted(ctx context.Context) (bool, error)
Click to show internal directories.
Click to hide internal directories.