glitterboot

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

README

glitter-boot

Glitter bootstrap tool

Install

go install github.com/glitternetwork/glitter-boot/cmd/glitter-boot@latest

Synopsis

Glitter bootstrap tool

Options

  -h, --help   help for glitter-boot

SEE ALSO

Auto generated by spf13/cobra on 28-Feb-2022

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTMClient

func NewTMClient(tendermintAddr string) (*thttp.HTTP, error)

func SetupNode

func SetupNode(ctx context.Context, args SetupNodeArgs)

SetupNode set up and start a glitter validator 1. download tm,glitter 2. install & resgister systemd 3. set seeds 4. download genesis.json 5. copy glitter config 6. generate tm config and validator files 7. update validator to old cluster 8. switch to full node 9. check if become a validator 10. switch to validator node

Types

type CopyFileDesc

type CopyFileDesc struct {
	Src  string
	Dest string
}

type NodeAddr

type NodeAddr struct {
	Address string
	Host    string
	Port    string
}

func (*NodeAddr) String

func (n *NodeAddr) String() string

type SetupNodeArgs

type SetupNodeArgs struct {
	ValidatorMode       bool
	Seeds               string
	Moniker             string
	IndexMode           string
	GlitterBinaryURL    string // "http://host.docker.internal:8080/glitter"
	TendermintBinaryURL string
}

type TendermintClient

type TendermintClient = thttp.HTTP

type UpdateValidatorBody

type UpdateValidatorBody struct {
	PubKey crypto.PubKey `json:"pub_key"`
	Power  int64         `json:"power"`
}

Directories

Path Synopsis
cmd
glitter-boot command

Jump to

Keyboard shortcuts

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