tendermint

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBProvider

func DBProvider(ID string, backendType dbm.DBBackendType, dbDir string) dbm.DB

func DeriveGenesisDoc

func DeriveGenesisDoc(gen *proposal.Genesis) *tmTypes.GenesisDoc

Types

type Node

type Node struct {
	*node.Node
	// contains filtered or unexported fields
}

Node serves as a wrapper around the Tendermint node's closeable resources (database connections)

func NewNode

func NewNode(conf *tmConfig.Config, privValidator tmTypes.PrivValidator, gen *tmTypes.GenesisDoc,
	bc *blockchain.Blockchain, checker execution.BatchExecutor, committer execution.BatchCommitter) (*Node, error)

func (*Node) Close

func (n *Node) Close()

Close closes DB connections. Since Tendermint doesn't close its DB connections

func (*Node) DBProvider

func (n *Node) DBProvider(ctx *node.DBContext) (dbm.DB, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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