tm

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidatorSetChangePrefix string = "val:"
)

Variables

View Source
var (
	ProtocolVersion version.Protocol = 0x1
)

Functions

This section is empty.

Types

type BaseApplication

type BaseApplication struct {
	abcitypes.BaseApplication

	// validator set
	ValUpdates []abcitypes.ValidatorUpdate
	// contains filtered or unexported fields
}

func NewBaseApplication

func NewBaseApplication(config *cfg.Config, logger log.Logger) (bapp *BaseApplication)

func (*BaseApplication) BeginBlock

func (*BaseApplication) Commit

func (*BaseApplication) EndBlock

func (*BaseApplication) IncreaseTxSize

func (app *BaseApplication) IncreaseTxSize()

func (*BaseApplication) Info

func (*BaseApplication) InitChain

func (*BaseApplication) RegisterSpace

func (app *BaseApplication) RegisterSpace(name string)

func (*BaseApplication) RegisterSpaceIfNotExist

func (app *BaseApplication) RegisterSpaceIfNotExist(name string)

type DaemonApp

type DaemonApp struct {
	*BaseApplication
}

func NewDaemonApplication

func NewDaemonApplication(config *cfg.Config, logger log.Logger) (dapp *DaemonApp)

func (*DaemonApp) DeliverTx

func (*DaemonApp) Query

func (app *DaemonApp) Query(reqQuery abcitypes.RequestQuery) (resQuery abcitypes.ResponseQuery)

type NodeProvider

type NodeProvider struct {
}

func (*NodeProvider) NewNode

func (provider *NodeProvider) NewNode(config *cfg.Config, logger log.Logger) (tmNode *node.Node, dapp *DaemonApp, err error)

type Provider

type Provider func(*cfg.Config, log.Logger) (tmNode *node.Node, dapp *DaemonApp, err error)

type State

type State struct {
	Size    int64  `json:"size"`
	Height  int64  `json:"height"`
	AppHash []byte `json:"app_hash"`
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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