consensus

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(olcfg Config) *config.Config

NewConfig returns a ready-to-go tendermint configuration

func NewLogger

func NewLogger(logPath string, cfg tmconfig.Config) tmlog.Logger

func NewNode

func NewNode(
	application abcitypes.Application,
	configuration Config,
	privValidator types.PrivValidator,
	genesisDoc *types.GenesisDoc,
) (*tmnode.Node, error)

Types

type AppState

type AppState struct {
	// Name of the account
	Account string      `json:"account"`
	States  []app.State `json:"states"`
}

func NewAppState added in v0.8.0

func NewAppState() *AppState

func (AppState) MarshalJSON

func (a AppState) MarshalJSON() ([]byte, error)

type Config

type Config struct {
	Moniker         string
	RootDirectory   string
	RPCAddress      string
	P2PAddress      string
	IndexTags       []string
	PersistentPeers string
	Seeds           string
	SeedMode        bool
}

Config is a OneLedger-specific configuration struct used to create a tendermint configuration

type GenesisDoc

type GenesisDoc = types.GenesisDoc

func DefaultGenesisDoc

func DefaultGenesisDoc() *GenesisDoc

type GenesisValidator

type GenesisValidator = types.GenesisValidator

type Node

type Node = tmnode.Node

Jump to

Keyboard shortcuts

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