cmd

package
v0.34.0-crescendo-prev... Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 46 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 {
	ExecutionStateConfig   epochs.EpochConfig
	ProtocolStateRootEpoch inmem.EncodableEpoch
}

IntermediaryEpochData stores the root epoch and the epoch config for the execution 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
}

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