commands

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetVersionNum = 31 // This is temporary and will be removed soon after mainnet is stabilized
)

Variables

This section is empty.

Functions

func AskMyIP

func AskMyIP(seeds []string) (string, error)

AskMyIP request to seeds randomly, in order to obtain self's externIP and corresponding chordID

func ClearPortMapping

func ClearPortMapping() error

func CreateID

func CreateID(seeds []string, wallet *vault.Wallet, txnFee common.Fixed64) error

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetID

func GetID(seeds []string, publickey []byte, createMode bool) ([]byte, error)

func GetOrCreateID

func GetOrCreateID(seeds []string, wallet *vault.Wallet, txnFee common.Fixed64, createMode bool) ([]byte, error)

func GetRemoteVersionNum

func GetRemoteVersionNum() (int, error)

func InitLedger

func InitLedger(account *vault.Account) error

func JoinNet

func JoinNet(nn *nnet.NNet) error

func SetupPortMapping

func SetupPortMapping() error

Types

type NetVer

type NetVer struct {
	Ver int `json:"version"`
}

Jump to

Keyboard shortcuts

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