cmd

package
v0.37.0-crescendo-RC4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: AGPL-3.0 Imports: 49 Imported by: 2

Documentation

Overview

contains CLI logic that can exit the program and read/write files. It also uses structures and data types that are purely relevant for CLI purposes, such as encoding, decoding etc...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssembleNodeMachineAccountInfo added in v0.20.0

func AssembleNodeMachineAccountInfo(machineKey crypto.PrivateKey, accountAddress string) model.NodeMachineAccountInfo

AssembleNodeMachineAccountInfo exported wrapper for use in other projects

func Execute

func Execute()

func GenerateRandomSeed added in v0.20.0

func GenerateRandomSeed(seedLen int) []byte

func GenerateRandomSeeds added in v0.20.0

func GenerateRandomSeeds(n int, seedLen int) [][]byte

Types

type IntermediaryBootstrappingData added in v0.33.30

type IntermediaryBootstrappingData struct {
	IntermediaryParamsData
	IntermediaryEpochData
}

IntermediaryBootstrappingData stores data which needs to be passed between the 2 steps of the bootstrapping process: `rootblock` and `finalize`. This structure is created in `rootblock`, written to disk, then read in `finalize`.

type IntermediaryEpochData added in v0.33.30

type IntermediaryEpochData struct {
	// TODO remove redundant inclusion of the fields (currently storing them in cadence as well as in protocol-state representation).
	ExecutionStateConfig epochs.EpochConfig
	RootEpochSetup       *flow.EpochSetup
	RootEpochCommit      *flow.EpochCommit
}

IntermediaryEpochData stores the root epoch and the epoch config for the execution state and to bootstrap the Protocol State. This is used to pass data between the rootblock command and the finalize command.

type IntermediaryParamsData added in v0.33.30

type IntermediaryParamsData struct {
	ProtocolVersion            uint
	EpochCommitSafetyThreshold uint64
	EpochExtensionViewCount    uint64
}

IntermediaryParamsData stores the subset of protocol.GlobalParams which can be independently configured by the network operator (i.e. which is not dependent on other bootstrapping artifacts, like the root block). This is used to pass data between the rootblock command and the finalize command.

Jump to

Keyboard shortcuts

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