tendermint

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadcastTxAsyncFunc added in v0.18.0

func BroadcastTxAsyncFunc(validator *Node, txEncoder txs.Encoder) func(tx txs.Tx,
	callback func(res *abci_types.Response)) error

func DeriveGenesisDoc added in v0.18.0

func DeriveGenesisDoc(burrowGenesisDoc *genesis.GenesisDoc) *tm_types.GenesisDoc

func EventBusAsSubscribable added in v0.18.0

func EventBusAsSubscribable(eventBus tm_types.EventBusSubscriber) event.Subscribable

func NewLogger added in v0.18.0

func NewLogger(logger *logging.Logger) *tendermintLogger

func PublishAllEvents added in v0.18.0

func PublishAllEvents(ctx context.Context, fromSubscribable event.Subscribable, subscriber string,
	toPublisher event.Publisher) error

Publishes all tendermint events available on subscribable to publisher

func PublishEvent added in v0.18.0

func PublishEvent(ctx context.Context, fromSubscribable event.Subscribable, subscriber string, eventType string,
	toPublisher event.Publisher) error

func SubscribableAsEventBus added in v0.18.0

func SubscribableAsEventBus(subscribable event.Subscribable) tm_types.EventBusSubscriber

func SubscribeNewBlock added in v0.18.0

func SubscribeNewBlock(ctx context.Context, subscribable event.Subscribable, subscriber string,
	ch chan<- *tm_types.EventDataNewBlock) error

Types

type BurrowTendermintConfig added in v0.18.0

type BurrowTendermintConfig struct {
	Seeds          string
	ListenAddress  string
	Moniker        string
	TendermintRoot string
}

Burrow's view on Tendermint's config. Since we operate as a Tendermint harness not all configuration values are applicable, we may not allow some values to specified, or we may not allow some to be set independently. So this serves as a layer of indirection over Tendermint's real config that we derive from ours.

func DefaultBurrowTendermintConfig added in v0.18.0

func DefaultBurrowTendermintConfig() *BurrowTendermintConfig

func (*BurrowTendermintConfig) TendermintConfig added in v0.18.0

func (btc *BurrowTendermintConfig) TendermintConfig() *tm_config.Config

type Node added in v0.18.0

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

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

func NewNode added in v0.18.0

func NewNode(
	conf *config.Config,
	privValidator tm_types.PrivValidator,
	genesisDoc *tm_types.GenesisDoc,
	blockchain bcm.MutableBlockchain,
	checker execution.BatchExecutor,
	committer execution.BatchCommitter,
	logger *logging.Logger) (*Node, error)

func (*Node) Close added in v0.18.0

func (n *Node) Close()

func (*Node) DBProvider added in v0.18.0

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

Since Tendermint doesn't close its DB connections

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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