cmd

package
v0.44.0-unsafe-collect... Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: AGPL-3.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "blocks",
	Short: "Read block from protocol state",
	RunE:  runE,
}
View Source
var RootCmd = rootCmd
View Source
var SnapshotCmd = &cobra.Command{
	Use:   "snapshot",
	Short: "Read snapshot from protocol state",
	RunE:  runSnapshotE,
}

Functions

func Execute

func Execute()

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(state protocol.State, blocks storage.Blocks, commits storage.Commits) *Reader

func (*Reader) GetBlockByHeight

func (r *Reader) GetBlockByHeight(height uint64) (*flow.Block, error)

func (*Reader) GetBlockByID

func (r *Reader) GetBlockByID(blockID flow.Identifier) (*flow.Block, error)

func (*Reader) GetFinal

func (r *Reader) GetFinal() (*flow.Block, error)

func (*Reader) GetRoot added in v0.37.26

func (r *Reader) GetRoot() (*flow.Block, error)

func (*Reader) GetSealed

func (r *Reader) GetSealed() (*flow.Block, error)

func (*Reader) IsExecuted added in v0.37.26

func (r *Reader) IsExecuted(blockID flow.Identifier) (bool, error)

IsExecuted returns true if the block is executed this only works for execution node.

Jump to

Keyboard shortcuts

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