tendermint

package
v0.74.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFilePath

func ConfigFilePath(nodeDir string) string

func NewConfigTemplate

func NewConfigTemplate(templateRaw string) (*template.Template, error)

func NodeKeyFilePath added in v0.2.2

func NodeKeyFilePath(nodeDir string) string

func PrivValidatorFilePath added in v0.2.2

func PrivValidatorFilePath(nodeDir string) string

Types

type ConfigGenerator

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

func NewConfigGenerator

func NewConfigGenerator(conf *config.Config, generatedNodeSets []types.NodeSet) (*ConfigGenerator, error)

func (ConfigGenerator) GenesisValidators

func (tg ConfigGenerator) GenesisValidators() []tmtypes.GenesisValidator

func (ConfigGenerator) HomeDir

func (tg ConfigGenerator) HomeDir() string

func (*ConfigGenerator) Initiate

func (tg *ConfigGenerator) Initiate(index int, mode, groupName string) (*types.TendermintNode, error)

func (*ConfigGenerator) OverwriteConfig

func (tg *ConfigGenerator) OverwriteConfig(ns types.NodeSet, configTemplate *template.Template) error

func (*ConfigGenerator) TemplateAndMergeConfig

func (tg *ConfigGenerator) TemplateAndMergeConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)

TemplateAndMergeConfig templates provided template and merge it with originally initated Tendermint instance's config

func (*ConfigGenerator) TemplateConfig

func (tg *ConfigGenerator) TemplateConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)

TemplateConfig templates the provided template

type ConfigTemplateContext

type ConfigTemplateContext struct {
	TendermintNodePrefix string
	VegaNodePrefix       string
	NodeNumber           int
	NodesCount           int
	NodeSet              types.NodeSet
	// contains filtered or unexported fields
}

func (ConfigTemplateContext) NodeIDs

func (tc ConfigTemplateContext) NodeIDs() []string

func (ConfigTemplateContext) NodeIDsByGroupName

func (tc ConfigTemplateContext) NodeIDsByGroupName(groupNames ...string) []string

func (ConfigTemplateContext) NodePeers

func (tc ConfigTemplateContext) NodePeers() []Peer

func (ConfigTemplateContext) NodePeersByGroupName

func (tc ConfigTemplateContext) NodePeersByGroupName(groupNames ...string) []Peer

func (ConfigTemplateContext) NodePeersByNodeIndexes added in v0.4.0

func (tc ConfigTemplateContext) NodePeersByNodeIndexes(indexes ...int) []Peer

type Peer

type Peer struct {
	Index int
	ID    string
}

Jump to

Keyboard shortcuts

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