minter

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2018 License: MIT Imports: 19 Imported by: 14

Documentation

Index

Constants

View Source
const (
	ValidatorPresent = 1
	ValidatorAbsent  = 2

	BlockMaxBytes = 10000 // TODO: change to 10000000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockchain

type Blockchain struct {
	abciTypes.BaseApplication
	// contains filtered or unexported fields
}

func NewMinterBlockchain

func NewMinterBlockchain() *Blockchain

func (*Blockchain) BeginBlock

func (*Blockchain) CheckTx

func (app *Blockchain) CheckTx(rawTx []byte) abciTypes.ResponseCheckTx

func (*Blockchain) Commit

func (app *Blockchain) Commit() abciTypes.ResponseCommit

func (*Blockchain) CurrentState

func (app *Blockchain) CurrentState() *state.StateDB

func (*Blockchain) DeliverTx

func (app *Blockchain) DeliverTx(rawTx []byte) abciTypes.ResponseDeliverTx

func (*Blockchain) EndBlock

func (*Blockchain) GetStateForHeight

func (app *Blockchain) GetStateForHeight(height int) (*state.StateDB, error)

func (*Blockchain) Height

func (app *Blockchain) Height() int64

func (*Blockchain) Info

func (app *Blockchain) Info(req abciTypes.RequestInfo) (resInfo abciTypes.ResponseInfo)

func (*Blockchain) InitChain

func (*Blockchain) LastCommittedHeight added in v0.7.5

func (app *Blockchain) LastCommittedHeight() int64

func (*Blockchain) Query

func (*Blockchain) SetOption

func (*Blockchain) SetTmNode added in v0.9.0

func (app *Blockchain) SetTmNode(node *tmNode.Node)

func (*Blockchain) Stop

func (app *Blockchain) Stop()

Jump to

Keyboard shortcuts

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