cmd

package
v0.33.25-fetch-collection Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetLivenessCmd = &cobra.Command{
	Use:   "get-liveness",
	Short: "get hotstuff liveness data (current view, newest QC, last view TC)",
	Run:   runGetLivenessData,
}
View Source
var GetSafetyCmd = &cobra.Command{
	Use:   "get-safety",
	Short: "get hotstuff safety data (locked view, highest acked view, last timeout)",
	Run:   runGetSafetyData,
}
View Source
var RootCmd = rootCmd

Functions

func Execute

func Execute()

Types

type HotstuffReader

type HotstuffReader interface {
	// GetLivenessData retrieves the latest persisted liveness data.
	GetLivenessData() (*hotstuff.LivenessData, error)
	// GetSafetyData retrieves the latest persisted safety data.
	GetSafetyData() (*hotstuff.SafetyData, error)
}

HotstuffReader exposes only the read-only parts of the Hotstuff Persister component. This is used to read information about the HotStuff instance's current state from CLI tools. CAUTION: the write functions are hidden here, because it is NOT SAFE to use them outside the Hotstuff state machine.

func NewHotstuffReader

func NewHotstuffReader(db *badger.DB, chainID flow.ChainID) HotstuffReader

NewHotstuffReader returns a new Persister, constrained to read-only operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL