consensus

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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