Documentation
¶
Index ¶
- Variables
- func Execute()
- type Reader
- func (r *Reader) GetBlockByHeight(height uint64) (*flow.Block, error)
- func (r *Reader) GetBlockByID(blockID flow.Identifier) (*flow.Block, error)
- func (r *Reader) GetFinal() (*flow.Block, error)
- func (r *Reader) GetRoot() (*flow.Block, error)
- func (r *Reader) GetSealed() (*flow.Block, error)
- func (r *Reader) IsExecuted(blockID flow.Identifier) (bool, error)
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 ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) GetBlockByHeight ¶
func (*Reader) GetBlockByID ¶
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.
Click to show internal directories.
Click to hide internal directories.