Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecoverTortoise ¶ added in v0.1.11
func RecoverTortoise(mdb database) (interface{}, error)
RecoverTortoise retrieve latest saved tortoise from the database
Types ¶
type Tortoise ¶
type Tortoise interface { HandleLateBlock(b *types.Block) (types.LayerID, types.LayerID) HandleIncomingLayer(ll *types.Layer) (types.LayerID, types.LayerID) LatestComplete() types.LayerID Persist() error }
Tortoise represents an instance of a vote counting algorithm
func NewRecoveredTortoise ¶ added in v0.1.11
NewRecoveredTortoise recovers a previously persisted tortoise copy from mesh.DB
Click to show internal directories.
Click to hide internal directories.