tendermint

package
v0.0.0-...-0eca64e Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultNewNodeWithApp

func DefaultNewNodeWithApp(config *tmConfig.Config, app types.Application, logger log.Logger) (*node.Node, error)

Generate new tendermint node with abci application interface

Types

type ABCIProxy

type ABCIProxy struct {
	types.BaseApplication
	// contains filtered or unexported fields
}

func NewABCIProxy

func NewABCIProxy(
	state *state.State,
	logger *logrus.Logger,
) *ABCIProxy

func (*ABCIProxy) BeginBlock

func (*ABCIProxy) CheckTx

func (p *ABCIProxy) CheckTx(tx []byte) types.ResponseCheckTx

******************************************************* Implement Tendermint ABCI application ******************************************************** TODO: Implement CheckTx

func (*ABCIProxy) Commit

func (p *ABCIProxy) Commit() types.ResponseCommit

TODO: Return application state root

func (*ABCIProxy) DeliverTx

func (p *ABCIProxy) DeliverTx(tx []byte) types.ResponseDeliverTx

type Tendermint

type Tendermint struct {
	// contains filtered or unexported fields
}

func NewTendermint

func NewTendermint(config *config.TmConfig, logger *logrus.Logger) *Tendermint

func (*Tendermint) Info

func (t *Tendermint) Info() (map[string]string, error)

func (*Tendermint) Init

func (t *Tendermint) Init(state *state.State, service *service.Service) error

func (*Tendermint) Run

func (t *Tendermint) Run() error

Jump to

Keyboard shortcuts

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