service

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: GPL-3.0 Imports: 64 Imported by: 4

Documentation

Index

Constants

View Source
const (
	FlagMinGasPrices = "minimum-gas-prices"
	FlagHaltHeight   = "halt-height"
	FlagHaltTime     = "halt-time"
)

Tendermint full-node start flags

Variables

View Source
var (
	FlagOpenTracing           = "open-tracing"
	FlagOpenCollectorEndpoint = "open-collector-endpoint"
)

Open Collector Flags

View Source
var ZeroIntString = big.NewInt(0).String()

Functions

func CryptoKeyToPubkey

func CryptoKeyToPubkey(key crypto.PubKey) hmTypes.PubKey

func GetHeimdallApp

func GetHeimdallApp() *app.HeimdallApp

func InitializeNodeValidatorFiles

func InitializeNodeValidatorFiles(
	config *cfg.Config) (nodeID string, valPubKey crypto.PubKey, priv crypto.PrivKey, err error,
)

InitializeNodeValidatorFiles initializes node and priv validator files

func NewHeimdallService

func NewHeimdallService(pCtx context.Context, args []string)

func SetupCtxLogger

func SetupCtxLogger(logWriter io.Writer, logLevel string) (log.Logger, error)

func VerifyGenesis

func VerifyGenesis(ctx *server.Context, cdc *codec.Codec) *cobra.Command

VerifyGenesis verifies the genesis file and brings it in sync with on-chain contract

func WriteDefaultHeimdallConfig

func WriteDefaultHeimdallConfig(path string, conf helper.Configuration)

WriteDefaultHeimdallConfig writes default heimdall config to the given path

Types

type ValidatorAccountFormatter

type ValidatorAccountFormatter struct {
	Address string `json:"address,omitempty" yaml:"address"`
	PrivKey string `json:"priv_key,omitempty" yaml:"priv_key"`
	PubKey  string `json:"pub_key,omitempty" yaml:"pub_key"`
}

ValidatorAccountFormatter helps to print local validator account information

func GetSignerInfo

func GetSignerInfo(pub crypto.PubKey, priv []byte, cdc *codec.Codec) ValidatorAccountFormatter

GetSignerInfo returns signer information

Jump to

Keyboard shortcuts

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